Ubuntu12.04 + virtualbox

Source: Internet
Author: User

When virtualbox is started today, an error is reported and a prompt is displayed./Etc/init. d/vboxdrv setupBut an error is reported after running:

* Stopping virtualbox kernel modules [OK]
* Uninstalling old virtualbox dkms kernel modules [OK]
* Trying to register the virtualbox kernel modules using dkms error!Your kernel headers for Kernel 3.2.0-65-generic cannot be found.
Please install the linux-headers-3.2.0-65-generic package,
Or use the -- kernelsourcedir option to tell dkms where it's located

* Failed, trying without dkms
* Recompiling virtualbox Kernel Modules
* Look/Var/log/vbox-install.logTo find out what went wrong // check it in the log. The problem is not found in the kernel header.

 

Baidu checked and found that someone encountered similar problems with VMware Tools,

First check:

Uname-// View the current kernel version

Solution:

Sudo apt-Get update // update

Sudo apt-Get autoremove // The error code "sudo apt-get-F install/error: Unmet dependencies. Try using-f.

Sudo apt-Get install build-essential // with this software package, the compiler knows where the header file is and where the library function is. For details about the function of build-essential, see the remarks link.

Sudo apt-Get install linux-headers-3.2.0-65-generic // install the corresponding version, if you do not know your current kernel version, you can use uname-a to view

Sudo/etc/init. d/vboxdrv setup // succeeded. The corresponding header is found.

 

Remarks:

Http://baike.baidu.com/view/4126257.htm? Fr = Aladdin // address dkms

Http://www.cppblog.com/wuxu/archive/2013/10/25/203913.html // someone with the same issue with VMware Tools

Http://blog.163.com/?email protected]/blog/static/307302602009538137113 // build-essential

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.