After upgrading to the latest version of Virtual Box , It show the message below when I starting a virtual machine


Run /etc/init.d/vboxdrv setup

Stopping VirtualBox kernel modules ...done.
Uninstalling old VirtualBox DKMS kernel modules ...done.
Trying to register the VirtualBox kernel modules using DKMSError! Your kernel headers for kernel 3.8.0-31-generic cannot be found.
Please install the linux-headers-3.8.0-31-generic package,
or use the --kernelsourcedir option to tell DKMS where it's located
  (Failed, trying without DKMS)
Recompiling VirtualBox kernel modules ...failed!
  (Look at /var/log/vbox-install.log to find out what went wrong)


Uninstalling modules from DKMS
  removing old DKMS module vboxhost version  4.3.4

Deleting module version: 4.3.4
completely from the DKMS tree.
Attempting to install using DKMS

Creating symlink /var/lib/dkms/vboxhost/4.3.4/source ->

DKMS: add completed.
Failed to install using DKMS, attempting to install without
Makefile:183: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.

run sudo apt-get install linux-headers-3.8.0-31-generic

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package linux-headers-3.8.0-31-generic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'linux-headers-3.8.0-31-generic' has no installation candidate

Any help is appreciated!


Solved by download the latest version of Virtual Box at https://www.virtualbox.org/wiki/Linux_Downloads

  • Please mark this Answer as solved :) – NGRhodes May 31 '14 at 11:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.