Today I updated my 18.04 system, and after reboot I lost all internet connection both through wifi and ethernet cable. Wifi and cable work normally for other devices. No router or network settings were changed recently.
After trying many things (I will detail below), there is only one thing that partially works: add a nameserver to the
/etc/resolv.conf file. However, this file gets rewritten upon reboot and whenever I try to initialize my VPN connection. So currently I cannot go on the internet with a VPN.
Things I tried and did nothing (most - but not all - based on the discussion here: No internet after upgrade from 16.04 to 18.04)
- downgrade all the linux-* packages I found that were updated in the dpkg and apt logs using
dpkg -iand the cached versions (all other packages updates at this time do not seem to have any relation to networking: thunderbird (which I don't use), vim, xxd, element-desktop)
- boot an old kernel version using GRUB
- add the nameserver to
/head(the resolv.conf.d dir didn't exist on my system)
DNS=188.8.131.52(and others) to
- add my ethernet and wifi interfaces to /etc/network/interface with
iface <device> inet dhcp
- set static ip and manually add DNS through the GUI
All the above attempts did not work individually nor in various combinations, even after rebooting the system in each attempt.
Some diagnostics and general info:
- I'm running ubuntu native on this machine (not through dual boot, nor through a VM)
- I can ping 184.108.40.206, and other public IPs fine
- my device connects to the local network and router fine, receives ip configurations as normal (both wifi and cable)
- settings for both the wired and wireless connections have always been set to automatic for ip configs, DNS and DHCP which used to work (and continues to work on other devices)
- the update was from kernel 220.127.116.11 to 18.104.22.168 (if I'm using the correct terminology here)
Hence, I believe it has something to do with the DNS not being found correctly and/or with the systemd-resolved service, but I don't know what.