Bug#807371: apt hostname resoloution failure
Control: severity -1 normal
On Tue, Dec 08, 2015 at 03:17:32AM +0000, peter green wrote:
> Package: apt
> Version: 1.1.3
> Severity: grave
It works everywhere else, including the buildds, so I'm downgrading
this to normal, as it must be a configuration issue on your side.
>
> When running apt in a Debian stretch armhf chroot on my odriod u2 DNS
> resoloution fails. ping is able to resolve the hostname.
ping runs as root, the apt methods run as _apt.
>
> root@odroidu2:/# apt-get update
> Err:1 http://mirror.bytemark.co.uk/debian stretch InRelease
> Could not resolve 'mirror.bytemark.co.uk'
> Reading package lists... Done
> W: Failed to fetch
> http://mirror.bytemark.co.uk/debian/dists/stretch/InRelease Could not
> resolve 'mirror.bytemark.co.uk'
> W: Some index files failed to download. They have been ignored, or old ones
> used instead.
> root@odroidu2:/# ping mirror.bytemark.co.uk
> PING mirror.bytemark.co.uk (212.110.161.69) 56(84) bytes of data.
> 64 bytes from mirror.bytemark.co.uk (212.110.161.69): icmp_seq=1 ttl=57
> time=20.8 ms
>
> The chroot is on a host system running a vendor 3.0.90 kernel, no idea if
> that is relavent. At the very least if there is a problem running on older
> kernels there should be a warning before the updated packages are installed.
>
> The issue seems to be new in the 1.1 series of apt versions.
>
> The issue definately seems to be somehow related to dns lookups. If I add
> the hostname to /etc/resolv.conf then apt seems to work.
>
You might want to try running the ping as the _apt user and check
if that works. Maybe the _apt user does not have access to
/etc/resolv.conf?
--
Julian Andres Klode - Debian Developer, Ubuntu Member
See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.
When replying, only quote what is necessary, and write each reply
directly below the part(s) it pertains to (`inline'). Thank you.
Reply to: