APT “Could not resolve 'in.archive.ubuntu.com'” [duplicate]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite













This question already has an answer here:



  • `apt-get update` cannot find Ubuntu servers

    13 answers



I am using Ubuntu 14.04 LTS and I am unable to use apt-get update command. I am getting the below error:



support@node:~$ sudo apt-get update
Err http://in.archive.ubuntu.com trusty InRelease
Err http://in.archive.ubuntu.com trusty-updates InRelease
Err http://in.archive.ubuntu.com trusty-backports InRelease
Err http://security.ubuntu.com trusty-security InRelease
Err http://in.archive.ubuntu.com trusty Release.gpg
Could not resolve 'in.archive.ubuntu.com'
Err http://in.archive.ubuntu.com trusty-updates Release.gpg
Could not resolve 'in.archive.ubuntu.com'
Err http://security.ubuntu.com trusty-security Release.gpg
Could not resolve 'security.ubuntu.com'
Err http://in.archive.ubuntu.com trusty-backports Release.gpg
Could not resolve 'in.archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch
http://in.archive.ubuntu.com/ubuntu/dists/trusty/InRelease
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease
W: Failed to fetch http://in.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://in.archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg Could not resolve 'in.archive.ubuntu.com'
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg Could not resolve 'in.archive.ubuntu.com'
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-backports/Release.gpg Could not resolve 'in.archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg Could not resolve 'security.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.


Content of /etc/network/interfaces



auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 162.70.211.177
netmask 255.255.255.128
network 162.70.211.128
broadcast 162.70.211.255
gateway 162.70.211.129
dns-nameservers 8.8.8.8 8.8.4.4
dns-search local






share|improve this question














marked as duplicate by David Foerster, user535733, Eric Carvalho, muru, karel May 12 at 6:31


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.










  • 4




    looks like a connection error.... did you try running again?
    – Joshua Besneatte
    May 11 at 14:04










  • 14.04 should still be supported for another year, right? so this askubuntu.com/questions/91815/… doesn't apply?
    – Joshua Besneatte
    May 11 at 14:09










  • @JoshuaBesneatte yea. I tried multiple times but it gives the same error again and again
    – Boy
    May 11 at 14:11










  • can you ping the servers? could be DNS issue... see this: askubuntu.com/questions/29071/…
    – Joshua Besneatte
    May 11 at 14:16






  • 2




    probably DNS issue... add the google dns servers to /etc/network/interfaces -> dns-nameservers 8.8.8.8 8.8.4.4 per the second answer here: askubuntu.com/questions/130452/…
    – Joshua Besneatte
    May 11 at 14:26














up vote
0
down vote

favorite













This question already has an answer here:



  • `apt-get update` cannot find Ubuntu servers

    13 answers



I am using Ubuntu 14.04 LTS and I am unable to use apt-get update command. I am getting the below error:



support@node:~$ sudo apt-get update
Err http://in.archive.ubuntu.com trusty InRelease
Err http://in.archive.ubuntu.com trusty-updates InRelease
Err http://in.archive.ubuntu.com trusty-backports InRelease
Err http://security.ubuntu.com trusty-security InRelease
Err http://in.archive.ubuntu.com trusty Release.gpg
Could not resolve 'in.archive.ubuntu.com'
Err http://in.archive.ubuntu.com trusty-updates Release.gpg
Could not resolve 'in.archive.ubuntu.com'
Err http://security.ubuntu.com trusty-security Release.gpg
Could not resolve 'security.ubuntu.com'
Err http://in.archive.ubuntu.com trusty-backports Release.gpg
Could not resolve 'in.archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch
http://in.archive.ubuntu.com/ubuntu/dists/trusty/InRelease
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease
W: Failed to fetch http://in.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://in.archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg Could not resolve 'in.archive.ubuntu.com'
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg Could not resolve 'in.archive.ubuntu.com'
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-backports/Release.gpg Could not resolve 'in.archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg Could not resolve 'security.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.


Content of /etc/network/interfaces



auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 162.70.211.177
netmask 255.255.255.128
network 162.70.211.128
broadcast 162.70.211.255
gateway 162.70.211.129
dns-nameservers 8.8.8.8 8.8.4.4
dns-search local






share|improve this question














marked as duplicate by David Foerster, user535733, Eric Carvalho, muru, karel May 12 at 6:31


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.










  • 4




    looks like a connection error.... did you try running again?
    – Joshua Besneatte
    May 11 at 14:04










  • 14.04 should still be supported for another year, right? so this askubuntu.com/questions/91815/… doesn't apply?
    – Joshua Besneatte
    May 11 at 14:09










  • @JoshuaBesneatte yea. I tried multiple times but it gives the same error again and again
    – Boy
    May 11 at 14:11










  • can you ping the servers? could be DNS issue... see this: askubuntu.com/questions/29071/…
    – Joshua Besneatte
    May 11 at 14:16






  • 2




    probably DNS issue... add the google dns servers to /etc/network/interfaces -> dns-nameservers 8.8.8.8 8.8.4.4 per the second answer here: askubuntu.com/questions/130452/…
    – Joshua Besneatte
    May 11 at 14:26












up vote
0
down vote

favorite









up vote
0
down vote

favorite












This question already has an answer here:



  • `apt-get update` cannot find Ubuntu servers

    13 answers



I am using Ubuntu 14.04 LTS and I am unable to use apt-get update command. I am getting the below error:



support@node:~$ sudo apt-get update
Err http://in.archive.ubuntu.com trusty InRelease
Err http://in.archive.ubuntu.com trusty-updates InRelease
Err http://in.archive.ubuntu.com trusty-backports InRelease
Err http://security.ubuntu.com trusty-security InRelease
Err http://in.archive.ubuntu.com trusty Release.gpg
Could not resolve 'in.archive.ubuntu.com'
Err http://in.archive.ubuntu.com trusty-updates Release.gpg
Could not resolve 'in.archive.ubuntu.com'
Err http://security.ubuntu.com trusty-security Release.gpg
Could not resolve 'security.ubuntu.com'
Err http://in.archive.ubuntu.com trusty-backports Release.gpg
Could not resolve 'in.archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch
http://in.archive.ubuntu.com/ubuntu/dists/trusty/InRelease
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease
W: Failed to fetch http://in.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://in.archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg Could not resolve 'in.archive.ubuntu.com'
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg Could not resolve 'in.archive.ubuntu.com'
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-backports/Release.gpg Could not resolve 'in.archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg Could not resolve 'security.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.


Content of /etc/network/interfaces



auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 162.70.211.177
netmask 255.255.255.128
network 162.70.211.128
broadcast 162.70.211.255
gateway 162.70.211.129
dns-nameservers 8.8.8.8 8.8.4.4
dns-search local






share|improve this question















This question already has an answer here:



  • `apt-get update` cannot find Ubuntu servers

    13 answers



I am using Ubuntu 14.04 LTS and I am unable to use apt-get update command. I am getting the below error:



support@node:~$ sudo apt-get update
Err http://in.archive.ubuntu.com trusty InRelease
Err http://in.archive.ubuntu.com trusty-updates InRelease
Err http://in.archive.ubuntu.com trusty-backports InRelease
Err http://security.ubuntu.com trusty-security InRelease
Err http://in.archive.ubuntu.com trusty Release.gpg
Could not resolve 'in.archive.ubuntu.com'
Err http://in.archive.ubuntu.com trusty-updates Release.gpg
Could not resolve 'in.archive.ubuntu.com'
Err http://security.ubuntu.com trusty-security Release.gpg
Could not resolve 'security.ubuntu.com'
Err http://in.archive.ubuntu.com trusty-backports Release.gpg
Could not resolve 'in.archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch
http://in.archive.ubuntu.com/ubuntu/dists/trusty/InRelease
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease
W: Failed to fetch http://in.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://in.archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg Could not resolve 'in.archive.ubuntu.com'
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg Could not resolve 'in.archive.ubuntu.com'
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-backports/Release.gpg Could not resolve 'in.archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg Could not resolve 'security.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.


Content of /etc/network/interfaces



auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 162.70.211.177
netmask 255.255.255.128
network 162.70.211.128
broadcast 162.70.211.255
gateway 162.70.211.129
dns-nameservers 8.8.8.8 8.8.4.4
dns-search local




This question already has an answer here:



  • `apt-get update` cannot find Ubuntu servers

    13 answers









share|improve this question













share|improve this question




share|improve this question








edited May 14 at 9:06









Zanna

47.9k13119227




47.9k13119227










asked May 11 at 14:02









Boy

11




11




marked as duplicate by David Foerster, user535733, Eric Carvalho, muru, karel May 12 at 6:31


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






marked as duplicate by David Foerster, user535733, Eric Carvalho, muru, karel May 12 at 6:31


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









  • 4




    looks like a connection error.... did you try running again?
    – Joshua Besneatte
    May 11 at 14:04










  • 14.04 should still be supported for another year, right? so this askubuntu.com/questions/91815/… doesn't apply?
    – Joshua Besneatte
    May 11 at 14:09










  • @JoshuaBesneatte yea. I tried multiple times but it gives the same error again and again
    – Boy
    May 11 at 14:11










  • can you ping the servers? could be DNS issue... see this: askubuntu.com/questions/29071/…
    – Joshua Besneatte
    May 11 at 14:16






  • 2




    probably DNS issue... add the google dns servers to /etc/network/interfaces -> dns-nameservers 8.8.8.8 8.8.4.4 per the second answer here: askubuntu.com/questions/130452/…
    – Joshua Besneatte
    May 11 at 14:26












  • 4




    looks like a connection error.... did you try running again?
    – Joshua Besneatte
    May 11 at 14:04










  • 14.04 should still be supported for another year, right? so this askubuntu.com/questions/91815/… doesn't apply?
    – Joshua Besneatte
    May 11 at 14:09










  • @JoshuaBesneatte yea. I tried multiple times but it gives the same error again and again
    – Boy
    May 11 at 14:11










  • can you ping the servers? could be DNS issue... see this: askubuntu.com/questions/29071/…
    – Joshua Besneatte
    May 11 at 14:16






  • 2




    probably DNS issue... add the google dns servers to /etc/network/interfaces -> dns-nameservers 8.8.8.8 8.8.4.4 per the second answer here: askubuntu.com/questions/130452/…
    – Joshua Besneatte
    May 11 at 14:26







4




4




looks like a connection error.... did you try running again?
– Joshua Besneatte
May 11 at 14:04




looks like a connection error.... did you try running again?
– Joshua Besneatte
May 11 at 14:04












14.04 should still be supported for another year, right? so this askubuntu.com/questions/91815/… doesn't apply?
– Joshua Besneatte
May 11 at 14:09




14.04 should still be supported for another year, right? so this askubuntu.com/questions/91815/… doesn't apply?
– Joshua Besneatte
May 11 at 14:09












@JoshuaBesneatte yea. I tried multiple times but it gives the same error again and again
– Boy
May 11 at 14:11




@JoshuaBesneatte yea. I tried multiple times but it gives the same error again and again
– Boy
May 11 at 14:11












can you ping the servers? could be DNS issue... see this: askubuntu.com/questions/29071/…
– Joshua Besneatte
May 11 at 14:16




can you ping the servers? could be DNS issue... see this: askubuntu.com/questions/29071/…
– Joshua Besneatte
May 11 at 14:16




2




2




probably DNS issue... add the google dns servers to /etc/network/interfaces -> dns-nameservers 8.8.8.8 8.8.4.4 per the second answer here: askubuntu.com/questions/130452/…
– Joshua Besneatte
May 11 at 14:26




probably DNS issue... add the google dns servers to /etc/network/interfaces -> dns-nameservers 8.8.8.8 8.8.4.4 per the second answer here: askubuntu.com/questions/130452/…
– Joshua Besneatte
May 11 at 14:26










1 Answer
1






active

oldest

votes

















up vote
0
down vote













If you can ping IP addresses but not domain names, you have a problem with your DNS. Adding the google DNS (8.8.8.8 and 8.8.4.4) to /etc/network/interfaces and restarting should solve your problem:



auto eth0
iface eth0 inet static
. . .
dns-nameservers 8.8.8.8 8.8.4.4


Reference: See Answer #2 Here






share|improve this answer




















  • did the following change but still not working
    – Boy
    May 11 at 16:34










  • can you post your /etc/network/interfaces content into your question?
    – Joshua Besneatte
    May 11 at 16:48










  • updated the content for /etc/network/interfaces in the question
    – Boy
    May 14 at 7:16

















1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













If you can ping IP addresses but not domain names, you have a problem with your DNS. Adding the google DNS (8.8.8.8 and 8.8.4.4) to /etc/network/interfaces and restarting should solve your problem:



auto eth0
iface eth0 inet static
. . .
dns-nameservers 8.8.8.8 8.8.4.4


Reference: See Answer #2 Here






share|improve this answer




















  • did the following change but still not working
    – Boy
    May 11 at 16:34










  • can you post your /etc/network/interfaces content into your question?
    – Joshua Besneatte
    May 11 at 16:48










  • updated the content for /etc/network/interfaces in the question
    – Boy
    May 14 at 7:16














up vote
0
down vote













If you can ping IP addresses but not domain names, you have a problem with your DNS. Adding the google DNS (8.8.8.8 and 8.8.4.4) to /etc/network/interfaces and restarting should solve your problem:



auto eth0
iface eth0 inet static
. . .
dns-nameservers 8.8.8.8 8.8.4.4


Reference: See Answer #2 Here






share|improve this answer




















  • did the following change but still not working
    – Boy
    May 11 at 16:34










  • can you post your /etc/network/interfaces content into your question?
    – Joshua Besneatte
    May 11 at 16:48










  • updated the content for /etc/network/interfaces in the question
    – Boy
    May 14 at 7:16












up vote
0
down vote










up vote
0
down vote









If you can ping IP addresses but not domain names, you have a problem with your DNS. Adding the google DNS (8.8.8.8 and 8.8.4.4) to /etc/network/interfaces and restarting should solve your problem:



auto eth0
iface eth0 inet static
. . .
dns-nameservers 8.8.8.8 8.8.4.4


Reference: See Answer #2 Here






share|improve this answer












If you can ping IP addresses but not domain names, you have a problem with your DNS. Adding the google DNS (8.8.8.8 and 8.8.4.4) to /etc/network/interfaces and restarting should solve your problem:



auto eth0
iface eth0 inet static
. . .
dns-nameservers 8.8.8.8 8.8.4.4


Reference: See Answer #2 Here







share|improve this answer












share|improve this answer



share|improve this answer










answered May 11 at 14:35









Joshua Besneatte

1,494618




1,494618











  • did the following change but still not working
    – Boy
    May 11 at 16:34










  • can you post your /etc/network/interfaces content into your question?
    – Joshua Besneatte
    May 11 at 16:48










  • updated the content for /etc/network/interfaces in the question
    – Boy
    May 14 at 7:16
















  • did the following change but still not working
    – Boy
    May 11 at 16:34










  • can you post your /etc/network/interfaces content into your question?
    – Joshua Besneatte
    May 11 at 16:48










  • updated the content for /etc/network/interfaces in the question
    – Boy
    May 14 at 7:16















did the following change but still not working
– Boy
May 11 at 16:34




did the following change but still not working
– Boy
May 11 at 16:34












can you post your /etc/network/interfaces content into your question?
– Joshua Besneatte
May 11 at 16:48




can you post your /etc/network/interfaces content into your question?
– Joshua Besneatte
May 11 at 16:48












updated the content for /etc/network/interfaces in the question
– Boy
May 14 at 7:16




updated the content for /etc/network/interfaces in the question
– Boy
May 14 at 7:16


Popular posts from this blog

How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

Trouble downloading packages list due to a “Hash sum mismatch” error

How do I move numbers in filenames, in a batch renaming operation?