Page 1 of 1

Problem with network after installed vestacp.

Posted: Sun Sep 18, 2016 7:27 am
by Alexieze
Hi guys. I installed vestacp on my vps. After installed I have problem with network. I want make apt-get update, but get error.

Code: Select all

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

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

Err http://ru.archive.ubuntu.com trusty-backports InRelease

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

Err http://nginx.org trusty InRelease

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

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

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

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

W: Failed to fetch http://ru.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://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://ru.archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg  Could not resolve 'ru.archive.ubuntu.com'

W: Failed to fetch http://ru.archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg  Could not resolve 'ru.archive.ubuntu.com'

W: Failed to fetch http://ru.archive.ubuntu.com/ubuntu/dists/trusty-backports/Release.gpg  Could not resolve 'ru.archive.ubuntu.com'

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg  Could not resolve 'security.ubuntu.com'

W: Failed to fetch http://nginx.org/packages/ubuntu/dists/trusty/Release.gpg  Could not resolve 'nginx.org'

W: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/dists/trusty/Release.gpg  Could not resolve 'ppa.launchpad.net'

W: Failed to fetch http://apt.vestacp.com/trusty/dists/trusty/Release.gpg  Could not resolve 'apt.vestacp.com'

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

Re: Problem with network after installed vestacp.

Posted: Mon Sep 19, 2016 11:17 am
by Elizine
1. Ensure the nameserver IPs in /etc/resolv.conf file are pinging from your machine.
2. If not try using a reliable name server like the Google's 8.8.8.8 and 8.8.4.4.
3. Try putting the nameserver IP found in resolv.conf in your /etc/network/interfaces file as nameserver <IP of the DNS server> and restart the network by running /etc/init.d/networking restart and see if that works.
4. If none of them works, try changing the order in /etc/nsswitch.conf, line host: put the dns first. hosts: files dns mdns4_minimal [NOTFOUND=return] mdns4