, ,

After upgrading Ubuntu 10.04.3 LTS kernel version (3.0.0-14-generic-pae), VirtualBox has been crashed. After searching google I fond the following solution which works for me.

Just use the Ubuntu Software Center GUI, rather than having to use the apt-get command line

Search for Virtualbox. Should get at least two hits.

First remove x86 virtualization solution-base binaries (highlight and click remove)

Then highlight and remove Virtualbox.

Than go to command line and do the following:

1. add to /etc/apt/sources.list:

deb http://download.virtualbox.org/virtualbox/debian lucid contrib non-free

2. install the public key:

wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add –

3. prepare and install:

sudo apt-get update
sudo apt-get install virtualbox-4.0

After running the virtualbox sometime it’s required to run the vboxdrv service setup.

Error & Troubleshoot:

root@fakrul3350-laptop:~# /etc/init.d/vboxdrv setup
* Stopping VirtualBox kernel modules [ OK ]
* Uninstalling old VirtualBox DKMS kernel modules [ OK ]
* Trying to register the VirtualBox kernel modules using DKMS
Error! Your kernel headers for kernel 3.0.0-14-generic-pae cannot be found at
/lib/modules/3.0.0-14-generic-pae/build or /lib/modules/3.0.0-14-generic-pae/source.

* Failed, trying without DKMS
* Recompiling VirtualBox kernel modules
* Look at /var/log/vbox-install.log to find out what went wrong

root@fakrul3350-laptop:# tail -f /var/log/vbox-install.log
You can use the —kernelsourcedir option to tell DKMS where it’s located, or you could install the linux-headers-3.0.0-14-generic-pae package.
Failed to install using DKMS, attempting to install without
Makefile:172: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again. Stop.

root@fakrul3350-laptop:# sudo apt-get install linux-headers-`uname -r`