Temporary failure resolving – sudo apt-get update in ubuntu

If you are trying to update ubuntu respository and getting error:

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-backports/Release.gpg  Temporary failure resolving ‘us.archive.ubuntu.com’

just check the DNS.

Set the Google DNS (8.8.8.8) in /etc/resolvconf/resolv.conf.d/base

echo "nameserver 8.8.8.8" | sudo tee /etc/resolvconf/resolv.conf.d/base > /dev/null

then

sudo service resolvconf restart

After this procedure, I was able to resolve hostnames and

sudo apt-get update

This is just once use case and there are more possibilities depends upon the error we are getting while updating repository
One Response to “Temporary failure resolving – sudo apt-get update in ubuntu”
  1. Kiroshan October 26, 2017

Leave a Reply

Your email address will not be published. Required fields are marked *