I have installed VirtualBox Version 5.1.18 r114002 (Qt5.5.1)
on Ubuntu 16.04 LTS
. To virtualize everything (Kali, Windows 10).
I encounter the following error:
RTR3InitEx failed with rc=-1912 (rc=-1912)
The VirtualBox kernel modules do not match this version of VirtualBox.
The installation of VirtualBox was apparently not successful.
Executing'/sbin/vboxconfig'
may correct this. Make sure that you do not mix the OSE version and
the PUEL version of VirtualBox.where: supR3HardenedMainInitRuntime what: 4
VERR_VM_DRIVER_VERSION_MISMATCH (-1912) – The installed support driver
doesn't match the version of the user.
- What causes this problem?
- How can this problem be solved?
When i run dpkg --list virtualbox-*
in terminal, I get:
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
rc virtualbox-5.0 5.0.32-11293 i386 Oracle VM VirtualBox
rc virtualbox-5.1 5.1.18-11400 i386 Oracle VM VirtualBox
un virtualbox-gue <none> <none> (no description available)
un virtualbox-gue <none> <none> (no description available)
un virtualbox-ose <none> <none> (no description available)
Best Answer
Read This first!
Please note that this answer is intended to specifically solve the original poster's problem when typical solutions like running
sudo /sbin/vboxconfig
or removingvirtualbox-dkms
and installingdkms
does not work.Please first try these simple workarounds, these might help you right away.
It seems that your installation version of virtualbox is for 32-bit architecture while you are running 64-bit operation system which can be the cause of this problem.
My workaround would be to remove the installed version from PPA, and installing virtualbox from official repositories.
To remove virtualbox, run:
After that make sure there is no other version installed on your system by:
You shouldn't get any output, also you can try to run virtualbox to make sure it's not installed.
Then remove all related PPAs from your
sources.list
andsources.list.d
directory. ex:Make sure there is nothing except official repositories sources in
/etc/apt/sources.list
.And update your sources:
Now we can search to see which versions are available to install:
Which produces an output like this:
Then I would install the last version mentioned in
xenial-updates
:Also
sudo apt install virtualbox
, would be fine, but I would go with the above command to make sure my desired version is going to be installed.And after all, check that the correct version is installed.
From command line:
From GUI: to make sure correct version is running.
Help menu -> about virtualbox
Pay attention to green highlight