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