When running sudo apt-get update I get an error saying temporary failure resolving...

Asked by Josh Friedman

When I write 'sudo apt-get update' I get this error as output:

Err:1 http://ca.archive.ubuntu.com/ubuntu xenial InRelease
  Temporary failure resolving 'ca.archive.ubuntu.com'
Err:2 http://ca.archive.ubuntu.com/ubuntu xenial-security InRelease
  Temporary failure resolving 'ca.archive.ubuntu.com'
Err:3 http://ca.archive.ubuntu.com/ubuntu xenial-updates InRelease
  Temporary failure resolving 'ca.archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/dists/xenial/InRelease Temporary failure resolving 'ca.archive.ubuntu.com'
W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/dists/xenial-security/InRelease Temporary failure resolving 'ca.archive.ubuntu.com'
W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease Temporary failure resolving 'ca.archive.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#1
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

Try a different mirror

Revision history for this message
Josh Friedman (jwiggiff) said :
#3

I looked at that page already and it didn't help me. Also how do I try a different mirror?

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

Use the settings dialogue in update manager to select a different mirror server.

Can you access the repository server via your web browser, e.g. http://ca.archive.ubuntu.com/ubuntu or http://archive.ubuntu.com/ubuntu

If you can access the repository server via your web browser, but not during update attempts, then please follow https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure and paste all output into this question document that you have already created.

If you cannot access the repository server via the web browser, then you have a general network problem, and the issue is not related to the package management system.

Revision history for this message
Josh Friedman (jwiggiff) said :
#5

I am running ubuntu server so I don't have a gui. If you mean a browser on any computer then yes, I can reach it. Also I ran `ping 8.8.8.8` and nothing outputted.

Revision history for this message
Josh Friedman (jwiggiff) said :
#6

Also as a side note: when I try to install nodejs v6 it says 'curl: (6) Could not resolve host: deb.nodesource.com'. I think this means that it is overall internet conenction not the website or command or whatever. The internet works fine on other devices connected to the same network. also when I do ifconfig it shows me an IP. Also I am ssh-ing from the same network into the computer so it might be just internet access but local network stuff is fine.

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

"Could not resolve host" probably indicates that you have a problem with name resolution.

No output on the command "ping 8.8.8.8" is strange, you should either see success or get failure messages.

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#8

There are a few things you could change in your router settings to try to improve the connection:

1) You could set the DNS servers in your router settings to 8.8.8.8 and 8.8.4.4 (= Google DNS servers). It might help, if your Internet Service Provider has unstable DNS servers.

2) Disable IPv6 in your router, if your ISP is not providing IPv6 addresses to your PC.

Can you help with this problem?

Provide an answer of your own, or ask Josh Friedman for more information if necessary.

To post a message you must log in.