Page 1 of 1

После установки не выполняется apt-get update

Posted: Sat Sep 17, 2016 3:35 pm
by Alexieze
После установки не выполняется apt-get update, подскажите в чем может быть проблема.

Code: Select all

Err http://archive.canonical.com trusty InRelease

Err http://nginx.org trusty InRelease

Err http://apt.vestacp.com trusty InRelease

Err http://archive.ubuntu.com trusty InRelease

Err http://ppa.launchpad.net trusty InRelease

Err http://security.ubuntu.com trusty-security InRelease

Err http://archive.canonical.com trusty Release.gpg
  Temporary failure resolving 'archive.canonical.com'
Err http://archive.ubuntu.com trusty-updates InRelease

Err http://nginx.org trusty Release.gpg
  Temporary failure resolving 'nginx.org'
Err http://apt.vestacp.com trusty Release.gpg
  Temporary failure resolving 'apt.vestacp.com'
Err http://ppa.launchpad.net trusty Release.gpg
  Temporary failure resolving 'ppa.launchpad.net'
Err http://security.ubuntu.com trusty-security Release.gpg
  Temporary failure resolving 'security.ubuntu.com'
Err http://archive.ubuntu.com trusty Release.gpg
  Temporary failure resolving 'archive.ubuntu.com'
Err http://archive.ubuntu.com trusty-updates Release.gpg
  Temporary failure resolving 'archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/InRelease

W: Failed to fetch http://archive.canonical.com/ubuntu/dists/trusty/InRelease

W: Failed to fetch http://nginx.org/packages/ubuntu/dists/trusty/InRelease

W: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/dists/trusty/InRelease

W: Failed to fetch http://apt.vestacp.com/trusty/dists/trusty/InRelease

W: Failed to fetch http://archive.canonical.com/ubuntu/dists/trusty/Release.gpg  Temporary failure resolving 'archive.canonical.com'

W: Failed to fetch http://nginx.org/packages/ubuntu/dists/trusty/Release.gpg  Temporary failure resolving 'nginx.org'

W: Failed to fetch http://apt.vestacp.com/trusty/dists/trusty/Release.gpg  Temporary failure resolving 'apt.vestacp.com'

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg  Temporary failure resolving 'archive.ubuntu.com'

W: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/dists/trusty/Release.gpg  Temporary failure resolving 'ppa.launchpad.net'

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg  Temporary failure resolving 'security.ubuntu.com'

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg  Temporary failure resolving 'archive.ubuntu.com'

W: Some index files failed to download. They have been ignored, or old ones used instead.


Re: После установки не выполняется apt-get update

Posted: Sat Sep 17, 2016 8:17 pm
by Nanotraktor
Судя по тексту ошибки - либо проблемы с сетью (например, блокируются исходящие запросы с сервера или кривые настройки сети), либо (что более вероятно) проблемы с ДНС-серверами (или с ними самими, или же с доступом к ним) указанными в /etc/resolv.conf
Откройте этот файл и проверьте:
1) Есть ли в нем что-нибудь
2) Доступны ли сервера указанные в нем
3) Попробуйте заменить содержимое файла (само собой, сделав бекап) на
nameserver 8.8.8.8
nameserver 8.8.4.4
сохранить изменения и попробовать вновь.

Re: После установки не выполняется apt-get update

Posted: Sun Sep 18, 2016 5:15 am
by Alexieze
Эти действия я уже пробовал проводить, ничего к сожалению не вышло (

Re: После установки не выполняется apt-get update

Posted: Sun Sep 18, 2016 7:32 am
by Nanotraktor
Уронить на время iptables, к слову, пробовали? Возможно исходящие запросы им блокируются (у меня однажды такое было, когда LAMP на сервере поставил, а правила в iptables - только запрещающие).

Re: После установки не выполняется apt-get update

Posted: Tue Sep 20, 2016 8:31 pm
by imperio
Попробуйте выполнить

Code: Select all

echo "nameserver 8.8.8.8" > /etc/resolv.conf