Recently, I tried to run the command, sudo apt-get update and got the Temporary failure in name resolution error. But, after that the command proceeded and went on to update. Should I worried about the error. Below is the complete log:
sudo apt-get update
sudo: unable to resolve host {hostname}: Temporary failure in name resolution
Hit:1 http://in.archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://in.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Fetched 6,581 kB in 6s (1,180 kB/s)
Reading package lists... Done
cat /etc/resolv.conf
should point to a dns nameserver like your route / gateway. As alternative you can try one from google: type in as root (without sudo)echo nameserver 8.8.8.8 >> /etc/resolv.conf
a second hint might be a wrong default routeip route
should list a default route via your router / gateway ip. If not you can create such a route withsudo ip route add default via <routerip>
– AlexOnLinux Jun 04 '21 at 08:27