I'm with Ubuntu 15.04 and I'm trying to create an emulator (genymotion), but when run virtualbox, i got the error:

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.16.0-30-generic cannot be found.
Please install the linux-headers-3.16.0-30-generic package, or use the --kernelsourcedir option to tell DKMS where it's located ...failed!
(Failed, trying without DKMS) Recompiling VirtualBox kernel modules ...failed! (Look at /var/log/vbox-install.log to find out what went wrong)

I performed

uname -a

And the result is:

Linux douglas 3.16.0-30-generic #40-Ubuntu SMP Mon Jan 12 22:06:37 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Someone help me?Already I uninstalled and installed again.

  • Why are you running Utopic kernel with the Vivid OS?
    – Terrance
    Jul 9, 2015 at 21:24
  • How do I fix this?
    – Roknauta
    Jul 9, 2015 at 21:25
  • Run sudo apt-get install linux-headers-generic-lts-utopic from a terminal window and reboot the host when completed.
    – Terrance
    Jul 9, 2015 at 21:27
  • Appeared this message: E: Impossível encontrar o pacote linux-headers-generic-lts-utopic
    – Roknauta
    Jul 9, 2015 at 21:31
  • 1
    Possible duplicate of VirtualBox 4.3 on Ubuntu 13.10 unable to run VM
    – user.dz
    Jun 22, 2016 at 15:58

1 Answer 1


You are missing the kernel for Ubuntu Vivid. Probably it was remove by accident. So here are the steps.

# Install latest kernel
$ sudo apt-get install linux-generic

# Restart your machine ...

# Recompile the kernel module for Virtualbox
$ sudo /etc/init.d/vboxdrv setup

I had the same problem after trying to install Virtualbox 5.0 on Ubuntu 15.04 and I think I 've removed also the kernel while purging the virtualbox packages.

  • OP is missing 3.19 kernel image too. That is some bud in upgrade.
    – Pilot6
    Jul 10, 2015 at 18:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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