How to solve Problem update ubuntu server 18.04

rangkaian@dhcp:~$ sudo apt-get update
Err:1 Index of /ubuntu bionic InRelease
Temporary failure resolving ‘us.archive.ubuntu.com
Err:2 Index of /ubuntu bionic-security InRelease
Temporary failure resolving ‘security.ubuntu.com
Err:3 Index of /ubuntu bionic-updates InRelease
Temporary failure resolving ‘us.archive.ubuntu.com
Reading package lists… Done
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/bionic/InRelease Temporary failure resolving ‘us.archive.ubuntu.com
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease Temporary failure resolving ‘us.archive.ubuntu.com
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease Temporary failure resolving ‘security.ubuntu.com
W: Some index files failed to download. They have been ignored, or old ones used instead.
rangkaian@dhcp:~$

1 Like

Temporary failure in name resolve? Sounds like a DNS issue to me. Was there such a change on your network?

2 Likes

I thought the same as @abhishek, but apparently your internet works.

In any case, before being too alarmed, I’d try again. You could also try to ping us.archive.ubuntu.com.

1 Like

“internet” can still work when DNS is broken…

This smells like a DNS issue…

A) Try pinging “google.com”…
B) if that doesn’t work, trying pinging 8.8.8.8…

If A doesn’t work, but B does, your problem isn’t internet, it’s DNS.

This happened to me recently, on Ubuntu 21.04… Can’t remember how I solved it now… I think I might have done a “sudo systemctl restart NetworkManager.service”, made sure my WiFi / Ethernet was connected - and then tried “ping google.com” and when that worked - I was able to update / upgrade…

1 Like