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 can't seem to make VirtualBox to work, I've installed it and reinstalled by 3 ways: Terminal, Ubuntu Software Center and VirtualBox's official web site installation and I keep getting the same kernel error.


I found a "solution" to this problem by typing in terminal: sudo apt-get install virtualbox-dkms But it tells my that "virtualbox-dkms is already the newest version". Then I typed in terminal what the error tells me: sudo /etc/init.d/vboxdrv setup but then I tells me that DKMS is actually NOT installed (which is a contradiction).

If anyone has encountered the same problem and actually solved it please tell me and explain me step by step 'cause I'm new to Linux.

share|improve this question
Can you provide the exact output of sudo /etc/init.d/vboxdrv setup? – Salem Nov 15 '12 at 20:17
up vote 1 down vote accepted

Fixed! I've managed to fix it by typing in terminal:

sudo apt-get install linux-headers-$(uname -r)

share|improve this answer

If you are stil having issues with the kernel error try this for Ubuntu 12.10 and Virtualbox 4.1.18.

sudo apt-get install linux-headers-3.5.0-19-generic
sudo dpkg-reconfigure virtualbox
sudo dpkg-reconfigure virtualbox-dkms
share|improve this answer

First, make sure that the DKMS package has built and is loaded into the kernel.

lsmod | grep box

and make sure the results look sensible . (there should me some module loaded)

If it's there then your good to go, if not then the easiest way to build DKMS modules is to simply restart. Once your running again lsmod to make sure your module loaded.

Also, it seems your doing this in a really odd way.

The way I do it is:

get the deb from

dpkg -i DownloadedVirtualBoxFile.deb

if there are any errors then

apt-get -f install

to resolve dependencies.

Then just run Virtual Box and let it tell you the next step. You should get an error and instructions about adding your user to the virtual box group.

I would recommend starting by completely removing VirtualBox from your system.

dpkg --get-selections | grep box

to get a list then

dpkg --remove virtualbox-4.2

to remove them (only virtual box stuffs).

Next install from the link above using the deb package.

share|improve this answer

You have to install linux headers, remove virtualbox-dkms and install virtualbox-dkms. The step by step instructions are given in the following link,

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.