# apt-get update
....
Err:3 http://mirror.[domain]/ubuntu xenial-security InRelease
Unable to connect to mirror.[domain]:80:
Reading package lists... Done
...
W: Failed to fetch http://mirror.[domain]/ubuntu/dists/xenial-security/InRelease Unable to connect to mirror.[domain]:80:
W: Some index files failed to download. They have been ignored, or old ones used instead.
# echo $?
0
Here the output:
# apt-get update mirror.[domain]/ubuntu xenial-security InRelease mirror.[domain] /ubuntu/ dists/xenial- security/ InRelease Unable to connect to mirror.[domain]:80:
....
Err:3 http://
Unable to connect to mirror.[domain]:80:
Reading package lists... Done
...
W: Failed to fetch http://
W: Some index files failed to download. They have been ignored, or old ones used instead.
# echo $?
0