Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

Thanks,

ETA:

farhat@palantir$ sudo dpkg -l | grep -e virtualbox -e linux-headers -e dkms
ii  dkms                                      2.2.0.3-1.1ubuntu2                     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                     3.8.0.26.44                            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

1 Answer 1

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
4  
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
2  
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

Your Answer

 
discard

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.