Bug#551760: Acknowledgement (apt: Something wicked happened resolving)
Hi!
@David: Small question - did you even try to reproduce it? Just do it :)
I have the same problem.
debootstrap, squeeze or sid; mounting some things (bind dev, some tmp
filesystems, mkdir + bind /lib/init/rw/resolconf..., mount proc, mount sys,
all done in a CLONE_NEWNS container to keep things clean)
ping works, libnss-mdns is not installed.
apt-get update (or aptitude update) doesn't work:
Something wicked happened resolving 'ftp.us.debian.org:http' (-5)
-5 is EAI_NODATA afaik
Now i wondered why it works on my main system and couldn't find anything
useful (apart from the problem that gdb didn't find the libc debug lib i
installed as it did in my main system) - so i just copied /etc to the chroot,
and it worked.
Some straces and tries later i found the fix: just add mdns in nsswitch.conf
(see below for diff).
As noted above: there is no libnss-mdns installed, so i don't think it should
fix problems...
--- /etc/nsswitch.conf 2006-08-28 16:33:19.000000000 +0000
+++ /etc.works/nsswitch.conf 2009-08-11 11:56:51.000000000 +0000
@@ -8,7 +8,7 @@
group: compat
shadow: compat
-hosts: files dns
+hosts: files mdns_minimal dns mdns
networks: files
protocols: db files
Reply to: