Ubuntu fetch errors in apt-get update “Temporary failure resolving”.
En error appears when we use the command:
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:
or as permanently:
Then repeat the command: