I have just installed Ubuntu Server 18.04 and set up SSH so I can continue configuring via my desktop but I've run into some issues that I can't seem to get past.
I was trying to run
sudo apt-get update
but was constantly getting the errors:
Temporary failure resolving archive.ubuntu.com
Failed to fetch http://archive.ubuntu........
I checked to see if my internet connection was ok by running
and I got a response, all ok there.
I suspected that maybe my DNS was not set-up correctly so I tried
and got the error:
Temporary failure in name resolution
Ok, so I had determined that it is, in fact, some sort of DNS issue, but all the “answers” I've tried have not worked for me.
I've tried editing
/etc/resolv.conf without luck as it appears to be a symbolic link.
I found an answer here which only works if I run from root, ie:
But it instructs to reverse the changes afterwards by:
rm /etc/resolv.conf ln -s /run/resolvconf/resolv.conf /etc/resolv.conf
If I do that though, I lose connection again.
- Should I just leave it the way I had it or something else?
- Can this be a permanent solution?
- And is the cause of the problem the fact that
/run/resolvconf/resolv.confdoesn't actually exist?