Virtualbox failed to install?

Solution 1:

The only thing that helped me was uninstalling virtualbox-dkms since that package was in an older version:

sudo dpkg -P virtualbox-dkms

Then I reinstalled virtualbox and it worked.

Solution 2:

Run:

sudo /sbin/rcvboxdrv setup
sudo apt -f install

And if that dosen't work:

sudo /etc/init.d/vboxdrv setup