[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#807371: apt hostname resoloution failure



Package: apt
Version: 1.1.3
Severity: grave

When running apt in a Debian stretch armhf chroot on my odriod u2 DNS resoloution fails. ping is able to resolve the hostname.

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.

Any thoughts on how to debug this.


Reply to: