Temporary failure resolving ubuntu

Admin Ubuntu Discuss

Ubuntu fetch errors in apt-get update “Temporary failure resolving”.

En error appears when we use the command:

sudo apt-get update

Errors

Err:1 http://mirror.serverius.net/ubuntu focal InRelease
Temporary failure resolving ‘mirror.serverius.net’
Err:2 http://security.ubuntu.com/ubuntu focal-security InRelease
Temporary failure resolving ‘security.ubuntu.com’
Err:3 http://mirror.serverius.net/ubuntu focal-updates InRelease
Temporary failure resolving ‘mirror.serverius.net’
Err:4 http://mirror.serverius.net/ubuntu focal-backports InRelease
Temporary failure resolving ‘mirror.serverius.net’
Reading package lists… Done
W: Failed to fetch http://mirror.serverius.net/ubuntu/dists/focal/InRelease Temporary failure resolving ‘mirror.serverius.net’
W: Failed to fetch http://mirror.serverius.net/ubuntu/dists/focal-updates/InRelease Temporary failure resolving ‘mirror.serverius.net’
W: Failed to fetch http://mirror.serverius.net/ubuntu/dists/focal-backports/InRelease Temporary failure resolving ‘mirror.serverius.net’
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/InRelease Temporary failure resolving ‘security.ubuntu.com’
W: Some index files failed to download. They have been ignored, or old ones used instead.

Solution

Perhaps this is a temporary problem with your provider’s DNS server.

We can add Google Public DNS server to our system as a temporary solution:

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

or as permanently:

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

Then repeat the command:

sudo apt-get update

Hi! You are on my site. I am a developer. Here I share my knowledge. Ask in the comments if you don’t understand something or write if you have something to add.

Leave a Reply

Write your comment if you have something on the topic of the current article:
"Temporary failure resolving ubuntu"
If you need to add a piece of code put it between the tags <code></code>