While using VirtualBox, I am getting the error shown in the picture. I executed the command suggested, but still I am getting the error.
34 Answers
The image in the picture is giving you this error message: rtr3initex failed with rc=-1912 (rc=-1912) Ubuntu
It's telling you you have a mismatched install. Your kernel modules do not match your installed version. The kernel modules are packaged in virtualbox-dkms in the repository.
You have most likely installed it from the repository. But failed to install all the modules, or you installed it, performed and upgrade and the modules didn't get completely upgraded during one of your system's updates. You can fix this by uninstalling it and reinstalling it, which will install the necessary modules. You do this with:
$ sudo apt remove --purge virtualbox
$ sudo apt install virtualbox
$ sudo apt install virtualbox-dkmsCompletely removing virtualbox and it's dependencies will not affect your VM's. Just the applicaton itself.
Alternatively you can download the latest version of Virtualbox from . The download page for linux is: .
You can append this to your /etc/apt/sources.list file to add the official developers repository:
deb xenial contribYou can download and add the security key with:
wget -q -O- | sudo apt-key add -
wget -q -O- | sudo apt-key add -Then grade what you currently have with:
$ sudo apt update
$ sudo apt upgradeIf you purged the previous version then reinstall it with this after the upgrade command above:
$ sudo apt install virtualboxIf you download and install from virtualbox.org the kernel modules for the developers version will automatically be compiled and installed.
Run:
sudo apt-get autoremove
sudo /sbin/vboxconfig 3 I see this is an old question, but I just had this problem and, while the answers already listed here may well be correct and solve the problem, they aren't actually necessary and theres a much easier way to fix it.
If Virtualbox has previously been installed and was working, then this problem can arise after a system update, as it did with me. It seems that VB is updated, but the dkms is not.
In order to obtain the correct dkms, it's necessary to also perform an 'upgrade'.
You can check if this is the case by running:
apt list --upgradableand the dkms package will likely be shown as an available upgrade.
If so, simply run:
sudo apt upgradeand the problem will be fixed.
1From L. D. James's comment:
sudo apt purge virtualbox-dkms
sudo /sbin/rcvboxdrv setupI've done this after a virtualbox downgrade and it worked.