Temporary failure resolving ubuntu

Admin Server Errors, Ubuntu

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
Tagged on:

Leave a Reply

Write your comment if you have something on the topic of the current article:
"Temporary failure resolving ubuntu"