Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I upgraded from 12.10 to 13.04 and my Virtualbox-4.1 stopped working. So I downloaded the Virtualbox-4.2 deb for Raring ringtail from their website and installed it. When I start Virtualbox, it starts fine. On trying to start a Virtual Machine I get this 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

'/etc/init.d/vboxdrv setup'

may correct this. Make sure that you do not mix the OSE version and the PUEL version of VirtualBox.

On running /etc/init.d/vboxdrv setup I get:

farhat@palantir:~$ /etc/init.d/vboxdrv setup
 * Stopping VirtualBox kernel modules                                           
 * Cannot unload module vboxdrv

What should be done here?



farhat@palantir$ sudo dpkg -l | grep -e virtualbox -e linux-headers -e dkms
ii  dkms                                                 all          Dynamic Kernel Module Support Framework
ii  linux-headers-3.8.0-26                    3.8.0-26.38                            all          Header files related to Linux kernel version 3.8.0
ii  linux-headers-3.8.0-26-generic            3.8.0-26.38                            amd64        Linux kernel headers for version 3.8.0 on 64 bit x86 SMP
ii  linux-headers-generic                                       amd64        Generic Linux kernel headers
rc  virtualbox-4.1                            4.1.26-84997~Ubuntu~precise            amd64        Oracle VM VirtualBox
ii  virtualbox-4.2                            4.2.16-86992~Ubuntu~raring             amd64        Oracle VM VirtualBox
share|improve this question
Please, edit your question to include the output of dpkg -l | grep -e virtualbox -e linux-headers -e dkms. – Eric Carvalho Jul 9 '13 at 11:27
Did you reboot after purging virtualbox OSE edition? – Takkat Jul 9 '13 at 11:39
added the output of dpkg and I didn't reboot after purging virtualbox-4.1 – Farhat Jul 9 '13 at 12:12
Tried rebooting as well. No change. – Farhat Jul 10 '13 at 8:36

This command must run with root privileges. Try:

sudo /etc/init.d/vboxdrv setup

Also try purging everything:

apt-get purge virtualbox-4.1 virtualbox-4.2

then reboot, reinstall VirtualBox 4.2, and run:

sudo apt-get -f install

to install any missing dependencies.

Run sudo /etc/init.d/vboxdrv setup again to make sure the VirtualBox kernel module is installed.

share|improve this answer
I get the same message and VirtualBox still doesn't work even after running with sudo. – Farhat Jul 9 '13 at 11:23
Please note that VirtualBox should NOT BE RUNNING when you run the vboxdrv script. Close the program and run the script with root privileges. – hmayag Jul 9 '13 at 11:34
I had shut down Virtualbox while using the sudo /etc... command. – Farhat Jul 9 '13 at 12:10
@Farhat answer updated. – Eric Carvalho Jul 9 '13 at 12:16
I followed the updated steps. Still getting the same error on running vboxdrv and Virtualbox gives the same error as before. Thanks for trying to help. – Farhat Jul 9 '13 at 12:29

I might have a good hint on this one. I've had a 64 bit kernel on my 32 bit system for some funny reason. Nothing I did managed to avert this annoyance but once I reverted back to a 32 bit kernel all of a sudden everything popped back into place.

share|improve this answer

This is pretty old question, but I recently had similar issue with Virtual Box 5.0. Reinstalling Virtual Box using '.deb' from their website helped.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.