Reinstalling VirtualBox on Linux

Reinstalling VirtualBox may fix issues with a missing kernel driver wanting to install dkms and run “/sbin/vboxconfig”. This error usually happens when going between VirtualBox major or point releases. It can also happen when upgrading the Linux operating system.

Uninstall old Virtualbox by

apt remove virtualbox

or

dpkg -r virtualbox

Then reinstall new Virtualbox:

gdebi virtualbox*.deb