apt-get update Невозможно подключиться и получить ошибку
Кажется, я не могу обновить или установить пакеты на моем минимальном VPS-сервере uBuntu 14.04 LTS.
Каждый раз, когда я бегу apt-get update
я получаю следующее длинное сообщение:
root@cryptogates:~# apt-get update
Ign http://nginx.org trusty InRelease
Hit http://nginx.org trusty Release.gpg
Hit http://nginx.org trusty Release
Hit http://nginx.org trusty/nginx amd64 Packages
Hit http://nginx.org trusty/nginx i386 Packages
Ign http://nginx.org trusty/nginx Translation-en
Hit http://apt.vestacp.com trusty InRelease
Hit http://apt.vestacp.com trusty/vesta amd64 Packages
Hit http://apt.vestacp.com trusty/vesta i386 Packages
Ign http://apt.vestacp.com trusty/vesta Translation-en
Ign http://extras.ubuntu.com trusty InRelease
Err http://extras.ubuntu.com trusty Release.gpg
Unable to connect to extras.ubuntu.com:http:
Ign http://extras.ubuntu.com trusty Release
Ign http://ppa.launchpad.net trusty InRelease
Ign http://download.webmin.com sarge InRelease
Err http://ppa.launchpad.net trusty Release.gpg
Unable to connect to ppa.launchpad.net:http:
Ign http://ppa.launchpad.net trusty Release
Err http://download.webmin.com sarge Release.gpg
Unable to connect to download.webmin.com:http:
Ign http://download.webmin.com sarge Release
W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/dists/trusty-backports/main/binary-i386/Packages Unable to connect to ca.archive.ubuntu.com:http: [IP: 91.189.92.200 80]
W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/dists/trusty-backports/restricted/binary-i386/Packages Unable to connect to ca.archive.ubuntu.com:http: [IP: 91.189.92.200 80]
W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/dists/trusty-backports/universe/binary-i386/Packages Unable to connect to ca.archive.ubuntu.com:http: [IP: 91.189.92.200 80]
W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/dists/trusty-backports/multiverse/binary-i386/Packages Unable to connect to ca.archive.ubuntu.com:http: [IP: 91.189.92.200 80]
W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/dists/trusty-backports/main/i18n/Translation-en Unable to connect to ca.archive.ubuntu.com:http: [IP: 91.189.92.200 80]
W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/dists/trusty-backports/multiverse/i18n/Translation-en Unable to connect to ca.archive.ubuntu.com:http: [IP: 91.189.92.200 80]
W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/dists/trusty-backports/restricted/i18n/Translation-en Unable to connect to ca.archive.ubuntu.com:http: [IP: 91.189.92.200 80]
W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/dists/trusty-backports/universe/i18n/Translation-en Unable to connect to ca.archive.ubuntu.com:http: [IP: 91.189.92.200 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
Сначала сервер выдвигал IPv6 вместо IPv4, сохраняя обновление% на 0, я исправил это следующим образом:
If you want to make the setting persistent just create /etc/apt/apt.conf.d/99force-ipv4 and put Acquire::ForceIPv4 "true"; in it.
Но сейчас я достигаю 100%, но все равно не получается.