On Ubuntu 14.04.3 LTS when attempting to run apt-get update, I get this:
Err http://us.archive.ubuntu.com trusty InRelease
Err http://us.archive.ubuntu.com trusty-updates InRelease
Err http://us.archive.ubuntu.com trusty-backports InRelease
Err http://us.archive.ubuntu.com trusty Release.gpg
Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com trusty-updates Release.gpg
Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com trusty-backports Release.gpg
Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://security.ubuntu.com trusty-security InRelease
Err http://security.ubuntu.com trusty-security Release.gpg
Unable to connect to security.ubuntu.com:http: [IP: 91.189.92.201 80]
Reading package lists... Done
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty/InRelease
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-backports/InRelease
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/InRelease
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-backports/Release.gpg Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg Unable to connect to security.ubuntu.com:http: [IP: 91.189.92.201 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.
гve been able to successfully apt-get update and upgrade on this machine in the past. гm not sure what changed. I хан ping the addresses just умер. гm using 8.8.8.8 and 8.8.4.4 for DNS. гm not using в proxy.
проверьте следующие случаи:
проверяют Ваше интернет-соединение.
ping любой веб-сайт (www.google.com), это поможет Вам, пакеты получены или нет.
проверка любой прокси установлен или нет.
проверка любой веб-сайт в браузерах (хром/Firefox)
Вам необходимо обновить сервер имен в /etc/resolv.conf
Выполните cat /etc/resolv.conf
и посмотрите, примерно так:
# [network]
# generateResolvConf = false
nameserver 172.X.X.X
Вам нужно изменить сервер имен на 8.8.8.8
, поэтому запустите sudo nano /etc/resolv.conf
, отредактируйте и сохраните файл.
Попробуйте после этого запустить sudo apt update
и посмотреть, работает ли он.