Most visited posts/pages in the last 24 hours
A listing of random software, tips, tweaks, hacks, and tutorials I made for Ubuntu
This error happens when you upgraded to a newer kernel and virtualbox-dkms hasn’t been built for it.
Instead of writing a huge post about the how and when etc…, I’ll just write the solution below (I don’t see a need to add a lot more information anyways):
sudo dpkg-reconfigure virtualbox-dkms
sudo modprobe vboxdrv
sudo modprobe vboxnetadp
sudo modprobe vboxnetflt
sudo modprobe vboxpci
All this does is that it recompiles virtualbox-dkms so that it works on your kernel, and then it loads the VirtualBox kernel modules. After running this code, you should be able to use virtualbox :)
Notice that you don’t need to run the
modprobe commands if you’re going to reboot right after (or rather, reboot before you want to use virtualbox).