+++ I had the same problem as described above.. after doing "sudo dpkg-
reconfigure resolvconf" everything appears to be OK now.  Repro and diag
info below +++

- Setup a new box with www.Linode.com.  Took their image of:  Ubuntu 12.04 LTS 
64bit.
## Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.5.2-x86_64-linode26 x86_64)
- Immediately after it was online:    apt-get update && apt-get upgrade
- Installed OpenVPN and created a new /interfaces bridge
- NOTE: My IP address for eth0, well now br0, is DHCP... (so, later when told I 
should add entries for dns-nameservers in /etc/network/interfaces, I did 
nothing)...

>> then, I got "resolvconf: Error: /etc/resolv.conf isn't a symlink, not doing 
>> anything":
root@localhost:/# sudo /etc/init.d/networking restart
 * Running /etc/init.d/networking restart is deprecated because it may not 
enable again some interfaces
 * Reconfiguring network interfaces...                                          
                                        Ignoring unknown interface eth0=eth0.

Waiting for br0 to get ready (MAXWAIT is 18 seconds).
resolvconf: Error: /etc/resolv.conf isn't a symlink, not doing anything.
ssh stop/waiting
ssh start/running, process 11457
                                                                                
                [ OK ]

>> Diag info from the host per Thomas' request above:
root@localhost:/# dpkg -l resolvconf network-manager dnsmasq dnsmasq-base
ls -l /etc/resolv.conf
cat /etc/resolv.conf
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                     Version                  Description
+++-========================-========================-================================================================
un  dnsmasq                  <none>                   (no description available)
un  network-manager          <none>                   (no description available)
ii  resolvconf               1.63ubuntu16             name server information 
handler
No packages found matching dnsmasq-base.
root@localhost:/# ls -l /etc/resolv.conf
-rw-r--r-- 1 root root 127 Sep 30 21:24 /etc/resolv.conf
root@localhost:/# cat /etc/resolv.conf
domain members.linode.com
search members.linode.com
nameserver 106.187.36.20
nameserver 106.187.34.20
nameserver 106.187.35.20
root@localhost:/# ls -l /run/resolvconf
ls -l /run/resolvconf/interface
for F in /run/resolvconf/interface/* ; do echo === $F === ; cat $F ; done
ls -l /etc/resolvconf/resolv.conf.d
total 0
drwxr-xr-x 2 root root 40 Sep 30 12:44 interface
-rw-r--r-- 1 root root  0 Sep 30 12:44 postponed-update
for F in /etc/resolvconf/resolv.conf.d/* ; do echo root@localhost:/# ls -l 
/run/resolvconf/interface
ps -elfww|grep dnsmasq
total 0
root@localhost:/# for F in /run/resolvconf/interface/* ; do echo === $F === ; 
cat $F ; done
=== /run/resolvconf/interface/* ===
cat: /run/resolvconf/interface/*: No such file or directory
root@localhost:/# ls -l /etc/resolvconf/resolv.conf.d
total 8
-rw-r--r-- 1 root root   0 Mar 29  2012 base
-rw-r--r-- 1 root root 151 Mar 29  2012 head
-rw-r--r-- 1 root root  23 Apr 26 15:28 original
root@localhost:/# for F in /etc/resolvconf/resolv.conf.d/* ; do echo === $F === 
; cat $F ; done
=== /etc/resolvconf/resolv.conf.d/base ===
=== /etc/resolvconf/resolv.conf.d/head ===
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
=== /etc/resolvconf/resolv.conf.d/original ===
nameserver 192.168.1.1
root@localhost:/# cat /etc/NetworkManager/NetworkManager.conf
cat: /etc/NetworkManager/NetworkManager.conf: No such file or directory
root@localhost:/# ps -elfww|grep dnsmasq
0 S root     11774 10318  0  80   0 -  2344 pipe_w 22:04 pts/1    00:00:00 grep 
--color=auto dnsmasq
root@localhost:/#

>>  tried the work around above ...
root@localhost:/# sudo dpkg-reconfigure resolvconf
 âââââââââââââââââââââââââââââââââââââââââââââ⤠Configuring resolvconf 
âââââââââââââââââââââââââââââââââââââââââââââââ
 â The resolvconf package contains the infrastructure required for dynamic 
updating of the resolver configuration    â
<snip></snip>
 â Prepare /etc/resolv.conf for dynamic updates?                                
                                     â
 â                                  <Yes>                                     
<No>                                   â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
>>choose YES

âââââââââââââââââââââââââââââââââââââââââââââ⤠Configuring resolvconf 
âââââââââââââââââââââââââââââââââââââââââââââââ
<snip></snip>
 â After the required "dns-nameservers" lines have been added to 
/etc/network/interfaces, the                        â
 â /etc/resolvconf/resolv.conf.d/tail link should be replaced by one to 
/dev/null.                                   â
 â Append original file to dynamic file?                                        
                                     â
 â                                  <Yes>                                     
<No>                                   â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
>>Choose NO (as this is supposed to be a new and clean box), although in the 
>>workarounds above I think people have been choosing YES here..

 âââââââââââââââââââââââââââââââââââââââââââââ⤠Configuring resolvconf 
âââââââââââââââââââââââââââââââââââââââââââââââ
 â Reboot recommended                                                           
                                     â
<snip></snip>
 â                                                      <Ok>                    
                                     â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
OK

>> verified.. and now I have a symlink... good
root@localhost:/# ls -la /etc/resolv.conf
lrwxrwxrwx 1 root root 29 Sep 30 22:22 /etc/resolv.conf -> 
../run/resolvconf/resolv.conf

>> my new (symlinked) resolv.conf contains what my old one did.
root@localhost:/# cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 106.187.36.20
nameserver 106.187.34.20
nameserver 106.187.35.20
search members.linode.com

>> restart networking as this is where I saw the problem initially... no repro 
>> of issue...
root@localhost:/# sudo /etc/init.d/networking restart
 * Running /etc/init.d/networking restart is deprecated because it may not 
enable again some interfaces
 * Reconfiguring network interfaces...
Waiting for br0 to get ready (MAXWAIT is 18 seconds).

>> rebooted host and confirmed all was still good, and it was... /etc/resolv is 
>> still a symlink and the target was updated with the reboot...
root@localhost:~# uptime
 22:43:27 up 5 min,  1 user,  load average: 0.00, 0.01, 0.01

root@localhost:~# ls -la /etc/resolv.conf
lrwxrwxrwx 1 root root 29 Sep 30 22:22 /etc/resolv.conf -> 
../run/resolvconf/resolv.conf

root@localhost:~# ls -la ../run/resolvconf/resolv.conf
-rw-r--r-- 1 root root 252 Sep 30 22:37 ../run/resolvconf/resolv.conf

root@localhost:~# cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 106.187.36.20
nameserver 106.187.34.20
nameserver 106.187.35.20
search members.linode.com


/HTTH

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1000244

Title:
  /etc/resolv.conf symlink does not exist after initial installation of
  resolvconf package

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/resolvconf/+bug/1000244/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to