Bug#810365: [apt] Temporary failure resolving xxxx even when the network is up and running
Package: apt
Version: 1.1.10
Severity: serious
--- Please enter the report below this line. ---
The problem happens on an chrooted arm64 image on Android.
Commands log:
root@localhost:~# apt update
Err:1 http://httpredir.debian.org/debian sid InRelease
Temporary failure resolving 'httpredir.debian.org'
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://httpredir.debian.org/debian/dists/sid/InRelease
Temporary failure resolving 'httpredir.debian.org'
W: Some index files failed to download. They have been ignored, or old ones
used instead.
root@localhost:~# ping httpredir.debian.org
PING httpredir.debian.org (5.153.231.35) 56(84) bytes of data.
64 bytes from httpredir-bm-01.debian.org (5.153.231.35): icmp_seq=1 ttl=56
time=59.1 ms
^C
--- httpredir.debian.org ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 59.100/59.100/59.100/0.000 ms
root@localhost:~# wget http://httpredir.debian.org/debian/dists/sid/InRelease
--2016-01-08 15:22:56--
http://httpredir.debian.org/debian/dists/sid/InRelease
Resolving httpredir.debian.org (httpredir.debian.org)... 176.9.184.93,
128.31.0.66, 5.153.231.35, ...
Connecting to httpredir.debian.org (httpredir.debian.org)|176.9.184.93|:80...
connected.
HTTP request sent, awaiting response... 302 Found
Location: http://debian.spnet.net/debian/dists/sid/InRelease [following]
--2016-01-08 15:22:56-- http://debian.spnet.net/debian/dists/sid/InRelease
Resolving debian.spnet.net (debian.spnet.net)... 212.36.0.70,
2a01:288:4000:6::2
Connecting to debian.spnet.net (debian.spnet.net)|212.36.0.70|:80...
connected.
HTTP request sent, awaiting response... 200 OK
Length: 276935 (270K) [application/octet-stream]
Saving to: 'InRelease'
InRelease 100%[===================>] 270.44K --.-KB/s in 0.07s
2016-01-08 15:22:56 (3.75 MB/s) - 'InRelease' saved [276935/276935]
root@localhost:~# cat /etc/apt/sources.list
deb http://httpredir.debian.org/debian sid main
root@localhost:~# cat /etc/resolv.conf
nameserver 192.168.0.1
nameserver 8.8.8.8
root@localhost:~# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.107 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::204:4bff:fe48:245 prefixlen 64 scopeid 0x20<link>
ether 00:04:4b:48:02:45 txqueuelen 1000 (Ethernet)
RX packets 78377 bytes 80657401 (76.9 MiB)
RX errors 0 dropped 6 overruns 0 frame 0
TX packets 46599 bytes 4291623 (4.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 21 bytes 3924 (3.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 21 bytes 3924 (3.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
p2p-wlan0-0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.49.1 netmask 255.255.255.0 broadcast 192.168.49.255
inet6 fe80::4:4bff:fe48:8243 prefixlen 64 scopeid 0x20<link>
ether 02:04:4b:48:82:43 txqueuelen 1000 (Ethernet)
RX packets 16853 bytes 271789 (265.4 KiB)
RX errors 0 dropped 2 overruns 0 frame 0
TX packets 12445 bytes 258502 (252.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 00:04:4b:48:02:43 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
root@localhost:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 208 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 208 0 0 eth0
192.168.49.0 0.0.0.0 255.255.255.0 U 0 0 0 p2p-
wlan0-0
root@localhost:~# mount
/dev/block/sda1 on / type ext4 (rw,relatime,seclabel,data=ordered)
proc on /proc type proc (rw,relatime)
sys on /sys type sysfs (rw,relatime,seclabel)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,seclabel,mode=755)
devpts on /dev/pts type devpts (rw,relatime,seclabel,mode=600)
Ping and wget works ok, it seems only apt can't use the network.
Yours,
BogDan.
Reply to: