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

Getting the following error when attempting to install the virtualbox kernel modules :

Deleting module version: 4.1.18
completely from the DKMS tree.
Loading new virtualbox-4.1.18 DKMS files...
Building only for 3.5.0-17-generic
Module build for the currently running kernel was skipped since the
kernel source for this kernel does not seem to be installed.

I tried installing the linux-source package, but not sure how ubuntu handles kernel sources and headers. Any ideas on how to do this from an Ubuntu standpoint?

share|improve this question

An other way:

apt-get install linux-headers-`uname -r`
dpkg-reconfigure virtualbox-4.2

The normal way:

/etc/init.d/vboxdrv setup
share|improve this answer

My Virtual Box told me that the kernel drivers were not installed. I ran apt-get remove virtualbox-dkms to remove the drivers and then re-installed them (apt-get install virtualbox-dkms) which rebuilt the drivers and I was able to run virtualbox with no problems

share|improve this answer

You need the kernel header as well. Based on your output, sudo apt-get install kernel-headers-3.5.0-17-generic should do it. On the guest VM, either autorun the ISO image or sudo sh ./ from the shell prompt should work. Appears this is a known problem with the latest 12.10 release.

share|improve this answer

Didn't work for me. Solved it by running:

gksudo synaptic

Search for 'dkms' and (re)install the one for VirtualBox and press the 'Apply' button. The output should say that virtualbox kernel drivers are up and running.

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.