I have a VirtualBox machine with Kubuntu and I lost Internet suddenly two days ago. I didn't do anything but uninstalling Python which I suppose it's not related to a network connection.
I tried everything but the only I've achieved is to turn the red wifi applet into blue but it doesn't work. I did this:
sudo ip link set enp0s3 on
I use a NAT connection.