Comment 6 for bug 1531150

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Actually, it's apt-get itself that is returning zero...:

root@trusty-landscape-devel:~# iptables -A OUTPUT -p tcp --dport 80 -j REJECT
root@trusty-landscape-devel:~# apt-get update
Err http://br.archive.ubuntu.com trusty InRelease

Err http://br.archive.ubuntu.com trusty-updates InRelease

Err http://br.archive.ubuntu.com trusty Release.gpg
  Cannot initiate the connection to br.archive.ubuntu.com:80 (2801:82:80ff:8000::5). - connect (101: Network is unreachable) [IP: 2801:82:80ff:8000::5 80]
Err http://br.archive.ubuntu.com trusty-updates Release.gpg
  Cannot initiate the connection to br.archive.ubuntu.com:80 (2801:82:80ff:8000::5). - connect (101: Network is unreachable) [IP: 2801:82:80ff:8000::5 80]
(...)
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::17). - connect (101: Network is unreachable) [IP: 2001:67c:1562::17 80]

W: Some index files failed to download. They have been ignored, or old ones used instead.
root@trusty-landscape-devel:~# echo $?
0
root@trusty-landscape-devel:~#