It has been many years since I used Virtualbox (I use the built-in KVM (Kernel Virtual Machine) in the kernel itself), but I think you need to install build-essential and dkms at the very least. Add linux-headers for good measure. Probably already have it, but you will be told if you do.
Did you install via the instructions here or from the Ubuntu repositories? Because of Oracle's licensing, certain parts of Virtualbox cannot be made available through any distribution's repositories. You have to add them from Oracle's site anyway, so might as well get it clean from the start.
I would suggest installing the following via the command line:
Code:
sudo apt install linux-headers-generic build-essential dkms
and then downloading and installing from Oracle's site.
Bookmarks