No internet after 16.04 LTS 18.04.01 upgrade

During our long chat, we determined that you were connected to the internet; we showed it with:

ping -c3 8.8.8.8

...which succeeded. However, pings to www.ubuntu.com did not succeed. This pointed to a problem with DNS nameserver resolution. We ran:

ls -al /etc/resolv.conf

Your result was:

lrwxrwxrwx 1 root root 29 Sep 1 22:07 /etc/resolv.conf -> ../run/resolvconf/resolv.conf

In your case, resolv.conf was not pointing to systemd as expected. Therefore, we removed and recreated the link:

sudo rm -f /etc/resolv.conf
ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf

Upon reboot, the computer connected and was able to ping names and numbers with no difficulty.

I also recommended a full update and upgrade; about 1700 packages were upgraded.

I'm glad it's now working as expected.