Virtualbox not working after upgrading ubuntu to 12.10 [Solved]

I have recently upgrade my OS to Ubuntu 12.10. Virtual box not working after up-gradation.  Its a very important tool for me so I need to be resolved anyhow.

Googled a lot to solve it.
$sudo /etc/init.d/vboxdrv setup
sudo: /etc/init.d/vboxdrv: command not found

There is no vboxdrv available in my pc

Try 2
$sudo aptitude update
aptitude was not installed at my pc so installed aptitude. No need to install aptitude if it is already in your pc.
$apt-get install aptitude
$sudo aptitude install dkms
$sudo /etc/init.d/vboxdrv setup

dkms package was already there in my pc so no upgrade. Still vboxdrv not available.

Last Try
$sudo apt-get install linux-headers-`uname -r`
Reconfigure dkms and load module:

$sudo dpkg-reconfigure virtualbox-dkms
It removes some unnecessary module from my computer.
$sudo modprobe vboxdrv

Then VirtualBox works without rebooting. 🙂

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.