Virtualbox failed to install after upgrade to 15.10

Whenever we install a newer major release of Virtual Box (e.g. 5.0.x) over an older release (e.g. 4.3.x) we have to remove the old version (including its kernel modules) before we can proceed.

For some reason this did not happen on your system where you still had the 4.3. kernel modules loaded.

To remove a previous VirtualBox installation we can issue:

sudo apt-get purge virtualbox*

We may have to reboot to unload the old kernel modules. After that we should be able to re-install the newer version from the repositories:

sudo apt-get update
sudo apt-get install virtualbox

The latest releases with bugfixes can also be installed by adding the official Oracle repository to our sources. I recommend to do so.


I had this very problem and tried all the solutions and none of them worked!

But i saw this solution and it surprisingly worked! apparently the problem was because of my kernel version, and when you update the kernel, dkms module can be installed properly during installation of virtualbox.

So all you have to do is remove all the virtualbox packages:

sudo apt-get remove virtualbox virtualbox-4.* virtualbox-5.0

Then update kernel:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install linux-generic

Then reboot your system:

And then install virtualbox:

get the installation deb file fro virtualbox.org site and install it

I hope it works for you as well.


found the perfect solutions for this bug

cd /var/lib/dpkg/info/

sudo rm virtualbox*

sudo apt-get update

sudo apt-get autoremove

Should solve it. I did this in ubuntu 15.10 64bit.

Regards,

Hashim Neves

Tags:

Virtualbox