Linux

Miscellaneous Linux Concepts

Updated: 03 September 2023

Ubuntu

Troubleshooting

Temporary failure resolving …

See this answer

When trying to run the apt-get update command you may encounter an error with some domains not resolving, may be due to the DNS resolution not working as it should. In order to fix this, manually add a DNS Server Entry which will work as a temporary fix:

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

Or permanently add one in the event this is an ISP Level issue (unlikely):

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

You should then be able to run:

1
sudo apt-get update