[Bug 1000244] Re: /etc/resolv.conf symlink does not exist after initial installation of resolvconf package

Bendi 1000244 at bugs.launchpad.net
Sun Sep 2 11:35:00 UTC 2012


I have done a new installation with Linux Mint Maya (MATE-32 bit) and again I have the same issue (no /etc/resolv.conf created).
This time, it is a brand new installation. No Updates installed, no VPN software added. 
Running "sudo dpkg-reconfigure resolvconf" fixes the issue (I have "yes" to both questions that appear)
Let me know if you want me to perform other tests (I'll try to answer sooner) and thanks for your work.

-------------Situation of machine just after install.
me at hostname ~ $ ls -l /etc/resolv.conf
ls: cannot access /etc/resolv.conf: No such file or directory
me at hostname ~ $ ls -l /run/resolvconf
total 0
drwxr-xr-x 2 root root 40 Sep  2 12:52 interface
-rw-r--r-- 1 root root  0 Sep  2 12:52 postponed-update
me at hostname ~ $ ls -l /run/resolvconf/interface
total 0
me at hostname ~ $ for F in /run/resolvconf/interface/* ; do echo "=== $F ===" ; cat "$F" ; done=== /run/resolvconf/interface/* ===
cat: /run/resolvconf/interface/*: No such file or directory
me at hostname ~ $ 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
me at hostname ~ $ cat /etc/resolv.conf
cat: /etc/resolv.conf: No such file or directory
me at hostname ~ $ lsattr /etc/resolv.conf
lsattr: No such file or directory while trying to stat /etc/resolv.conf
me at hostname ~ $ cat /etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile
dns=dnsmasq

[ifupdown]
managed=false
me at hostname ~ $ cat /run/nm-dns-dnsmasq.conf
server=192.168.1.1
me at hostname ~ $ df
Filesystem     1K-blocks     Used Available Use% Mounted on
/dev/sda1      485811100 10610720 450883812   3% /
udev             1002764        4   1002760   1% /dev
tmpfs             404008      932    403076   1% /run
none                5120        0      5120   0% /run/lock
none             1010012       76   1009936   1% /run/shm
me at hostname ~ $ sudo debconf-show resolvconf
  resolvconf/downup-interfaces:
  resolvconf/linkify-resolvconf: false
  resolvconf/link-tail-to-original: true
  resolvconf/reboot-recommended-after-removal:
-------------/Situation of machine just after install.

-------------Situation of machine just after "sudo dpkg-reconfigure resolvconf".
me at hostname ~ $ ls -l /etc/resolv.conf
lrwxrwxrwx 1 root root 29 Sep  2 13:29 /etc/resolv.conf -> ../run/resolvconf/resolv.conf
me at hostname ~ $ ls -l /run/resolvconf
total 4
-rw-r--r-- 1 root root   0 Sep  2 13:29 enable-updates
drwxr-xr-x 2 root root  40 Sep  2 12:52 interface
-rw-r--r-- 1 root root 151 Sep  2 13:29 resolv.conf
me at hostname ~ $ ls -l /run/resolvconf/interface
total 0
me at hostname ~ $ for F in /run/resolvconf/interface/* ; do echo "=== $F ===" ; cat "$F" ; done
=== /run/resolvconf/interface/* ===
cat: /run/resolvconf/interface/*: No such file or directory
me at hostname ~ $ 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
me at hostname ~ $ 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
me at hostname ~ $ lsattr /etc/resolv.conf
lsattr: Operation not supported While reading flags on /etc/resolv.conf
me at hostname ~ $ cat /etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile
dns=dnsmasq

[ifupdown]
managed=false
me at hostname ~ $ cat /run/nm-dns-dnsmasq.conf
server=192.168.1.1
me at hostname ~ $ df
Filesystem     1K-blocks     Used Available Use% Mounted on
/dev/sda1      485811100 10610908 450883624   3% /
udev             1002764        4   1002760   1% /dev
tmpfs             404008      936    403072   1% /run
none                5120        0      5120   0% /run/lock
none             1010012       76   1009936   1% /run/shm
me at hostname ~ $ sudo debconf-show resolvconf
* resolvconf/downup-interfaces:
* resolvconf/linkify-resolvconf: false
* resolvconf/link-tail-to-original: true
  resolvconf/reboot-recommended-after-removal:
-------------/Situation of machine just after "sudo dpkg-reconfigure resolvconf".

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

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

Status in “resolvconf” package in Ubuntu:
  Incomplete

Bug description:
  I upgraded an 11.10 install to 12.04, and now I'm unable to resolve
  domain names because Network Manager does not populate my
  /etc/resolv.conf file.

  For example, my local wireless router uses the domain "mylocaldomain"
  and nameservers 10.157.10.12 and 10.157.10.14, so in 11.10, after
  connecting to the router I would see this in my /etc/resolv.conf:

  domain mylocaldomain
  search mylocaldomain
  nameserver 10.157.10.12
  nameserver 10.157.10.14

  Now /etc/resolv.conf contains the settings last set before I upgraded
  to 12.04, and doesn't update them for whatever network I'm currently
  on. I have to manually guess the settings and modify /etc/resolv.conf
  in order to resolve domain names.

  I believe this may be related to
  https://bugs.launchpad.net/ubuntu/+source/resolvconf/+bug/922677 and
  how the "resolvconf" program has been introduce to manage this. I
  believe this is a new bug with how prior installs are improperly
  upgraded.

  I tried removing the line "dns=dnsmasq" from
  /etc/NetworkManager/NetworkManager.conf and then running `sudo restart
  network-manager`, but that had no effect.

  I tried running `resolvconf --enable-updates` but I get the error
  "resolvconf: Error: /etc/resolv.conf isn't a symlink, not doing
  anything."

  Based on https://help.ubuntu.com/12.04/serverguide/network-
  configuration.html#name-resolution, I tried establishing this symlink
  myself, but the file /run/resolvconf/resolv.conf does not exist on my
  system.

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: network-manager 0.9.4.0-0ubuntu4
  ProcVersionSignature: Ubuntu 3.2.0-24.37-generic 3.2.14
  Uname: Linux 3.2.0-24-generic x86_64
  NonfreeKernelModules: nvidia wl
  ApportVersion: 2.0.1-0ubuntu7
  Architecture: amd64
  CRDA: Error: command ['iw', 'reg', 'get'] failed with exit code 1: nl80211 not found.
  Date: Wed May 16 09:57:25 2012
  IfupdownConfig:
   auto lo
   iface lo inet loopback
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64+mac (20111012)
  IpRoute:
   default via 192.168.1.1 dev eth2  proto static 
   169.254.0.0/16 dev eth2  scope link  metric 1000 
   192.168.1.0/24 dev eth2  proto kernel  scope link  src 192.168.1.205  metric 2 
   192.168.122.0/24 dev virbr0  proto kernel  scope link  src 192.168.122.1
  NetworkManager.state:
   [main]
   NetworkingEnabled=true
   WirelessEnabled=true
   WWANEnabled=true
   WimaxEnabled=true
  SourcePackage: network-manager
  UpgradeStatus: Upgraded to precise on 2012-05-10 (5 days ago)
  nmcli-dev:
   DEVICE     TYPE              STATE         DBUS-PATH                                  
   eth2       802-11-wireless   connected     /org/freedesktop/NetworkManager/Devices/1  
   eth0       802-3-ethernet    unavailable   /org/freedesktop/NetworkManager/Devices/0
  nmcli-nm:
   RUNNING         VERSION    STATE           NET-ENABLED   WIFI-HARDWARE   WIFI       WWAN-HARDWARE   WWAN      
   running         0.9.4.0    connected       enabled       enabled         enabled    enabled         enabled

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




More information about the foundations-bugs mailing list