mykone
By:
mykone

How to resolve "Temporary failure resolving 'mirrors.digitalocean.com'" when running apt-get update?

November 28, 2016 61 views
DigitalOcean FAQ Ubuntu

Environment: Ubuntu 12.0.4.3

I am attempting to do a release upgrade, and starting the process by doing an apt-get update. When I run "apt-get update" I get the following errors detailed below. In summary it seems the Digital Ocean ubuntu mirrors have been changed. If so, what are the mirrors to ubuntu 12.0.4 LTS?

Details of error when ran "apt-get update"

Err http://us.archive.ubuntu.com precise Release.gpg
  Temporary failure resolving 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com precise-updates Release.gpg
  Temporary failure resolving 'us.archive.ubuntu.com'
Err http://security.ubuntu.com precise-security Release.gpg
  Temporary failure resolving 'security.ubuntu.com'
Err http://software.virtualmin.com virtualmin-precise Release.gpg
  Temporary failure resolving 'software.virtualmin.com'
Err http://software.virtualmin.com virtualmin-universal Release.gpg
  Temporary failure resolving 'software.virtualmin.com'
Err http://downloads-distro.mongodb.org dist Release.gpg
  Temporary failure resolving 'downloads-distro.mongodb.org'
Ign https://deb.nodesource.com precise Release.gpg
Ign https://deb.nodesource.com precise Release
Ign https://deb.nodesource.com precise/main Sources/DiffIndex
Ign https://deb.nodesource.com precise/main amd64 Packages/DiffIndex
Ign https://deb.nodesource.com precise/main i386 Packages/DiffIndex
Ign https://deb.nodesource.com precise/main TranslationIndex
Err http://mirrors.digitalocean.com precise Release.gpg
  Temporary failure resolving 'mirrors.digitalocean.com'
Err http://mirrors.digitalocean.com precise-updates Release.gpg
  Temporary failure resolving 'mirrors.digitalocean.com'
Err http://mirrors.digitalocean.com precise-backports Release.gpg
  Temporary failure resolving 'mirrors.digitalocean.com'
Err http://mirrors.digitalocean.com precise-security Release.gpg
  Temporary failure resolving 'mirrors.digitalocean.com'
Err https://deb.nodesource.com precise/main Sources
  Couldn't resolve host 'deb.nodesource.com'
Err https://deb.nodesource.com precise/main amd64 Packages
  Couldn't resolve host 'deb.nodesource.com'
Err https://deb.nodesource.com precise/main i386 Packages
  Couldn't resolve host 'deb.nodesource.com'
Ign https://deb.nodesource.com precise/main Translation-en_US
Ign https://deb.nodesource.com precise/main Translation-en
Reading package lists... Done
W: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/precise/Release.gpg  Temporary failure resolving 'mirrors.digitalocean.com'

W: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/precise-updates/Release.gpg  Temporary failure resolving 'mirrors.digitalocean.com'

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

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

W: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/precise-backports/Release.gpg  Temporary failure resolving 'mirrors.digitalocean.com'

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

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

W: Failed to fetch http://software.virtualmin.com/gpl/ubuntu/dists/virtualmin-precise/Release.gpg  Temporary failure resolving 'software.virtualmin.com'

W: Failed to fetch http://software.virtualmin.com/gpl/ubuntu/dists/virtualmin-universal/Release.gpg  Temporary failure resolving 'software.virtualmin.com'

W: Failed to fetch http://downloads-distro.mongodb.org/repo/ubuntu-upstart/dists/dist/Release.gpg  Temporary failure resolving 'downloads-distro.mongodb.org'

W: Failed to fetch https://deb.nodesource.com/node/dists/precise/main/source/Sources  Couldn't resolve host 'deb.nodesource.com'

W: Failed to fetch https://deb.nodesource.com/node/dists/precise/main/binary-amd64/Packages  Couldn't resolve host 'deb.nodesource.com'

W: Failed to fetch https://deb.nodesource.com/node/dists/precise/main/binary-i386/Packages  Couldn't resolve host 'deb.nodesource.com'

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

From the output there it looks like your droplet is having general DNS trouble as it's also unable to resolve other names. What is the current content of your /etc/resolv.conf file? Are you able to ping well known domains like google.com or wikipedia.org?

Hello. Thanks for your reply. It seems like It's my fault. I deleted log files yesterday to get some space, in doing so bind9 doesn't want to start. So I am rebuilding my droplet. Thanks for your reply. I need a better way to clean up log files so i don't mess up my system again.

Again, thanks for your reply.

Have another answer? Share your knowledge.