使用硬件启用堆栈升级内核后,Virtualbox 在 12.04 LTS 中停止工作

Mou*_*inX 5 virtualbox kernel 12.04

我现在使用内核 3.8 的 Ubuntu 12.04(精确)。Virtualbox 失败并出现此错误:

Kernel driver not installed (rc=-1908)
The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing

'/etc/init.d/vboxdrv setup'

as root. Users of Ubuntu, Fedora or Mandriva should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.
Run Code Online (Sandbox Code Playgroud)

我看到的一个提议的解决方案是:

sudo apt-get remove virtualbox-dkms
sudo apt-get install virtualbox-dkms
Run Code Online (Sandbox Code Playgroud)

失败并显示此消息:

sudo apt-get install virtualbox-dkms
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  virtualbox-dkms
0 upgraded, 1 newly installed, 0 to remove and 34 not upgraded.
Need to get 676 kB of archives.
After this operation, 3,899 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/universe virtualbox-dkms all 4.1.12-dfsg-2ubuntu0.3 [676 kB]
Fetched 676 kB in 2s (258 kB/s)          
Selecting previously unselected package virtualbox-dkms.
(Reading database ... 458635 files and directories currently installed.)
Unpacking virtualbox-dkms (from .../virtualbox-dkms_4.1.12-dfsg-2ubuntu0.3_all.deb) ...
Setting up virtualbox-dkms (4.1.12-dfsg-2ubuntu0.3) ...
Loading new virtualbox-4.1.12 DKMS files...
First Installation: checking all kernels...
Building only for 3.8.0-29-generic
Building initial module for 3.8.0-29-generic
Error! Bad return status for module build on kernel: 3.8.0-29-generic (x86_64)
Consult /var/lib/dkms/virtualbox/4.1.12/build/make.log for more information.
 * Stopping VirtualBox kernel modules                                                 [ OK ] 
 * Starting VirtualBox kernel modules                                                         * No suitable module for running kernel found
                                                                                      [fail]
invoke-rc.d: initscript virtualbox, action "restart" failed.
Run Code Online (Sandbox Code Playgroud)

Mou*_*inX 6

https://askubuntu.com/a/342372/36661应用我的解决方案后,在额外的系统更新(视频驱动程序)后问题再次出现。我在 IRC 上与 VirtualBox 开发人员聊天,他们告诉我 Ubuntu 不定期接受来自 VirtualBox 开发人员的错误修复。他们建议我从 virtualbox.org 安装最新的 VirtualBox 包,我照做了。那解决了问题。

Linux 的下载链接是:

https://www.virtualbox.org/wiki/Linux_Downloads

它实际上是一个更简单的安装,因为您不需要单独安装来宾添加。