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
ping 8.8.8.8
and I got a response, all ok there.
I suspected that maybe my DNS was not set-up correctly so I tried
ping www.google.com
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:
sudo bash
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.conf
doesn't actually exist?
/run/resolvconf/resolv.conf
doesn't exist there is no point in creating a symlink from/etc/resolv.conf
to it. So until you found out why that file doesn't exist I would recommend to use your working, manualresolv.conf
. Can you add the output ofdpkg -l resolvconf
to your question?