VirtualBox 每次启动时都要编译

VirtualBox 每次启动时都要编译

我必须在每次启动时手动编译 VirtualBox sbin/vboxconfig.sh,否则它无法运行。这个问题的永久解决方案是什么?我的内核版本是4.4.0-72

    srseven@srseven-HP-15-Notebook-PC:~/genymotion/tools$ dkms status
    bcmwl, 6.30.223.248+bdcom, 4.4.0-64-generic, x86_64: installed
    bcmwl, 6.30.223.248+bdcom, 4.4.0-66-generic, x86_64: installed
    bcmwl, 6.30.223.248+bdcom, 4.4.0-70-generic, x86_64: installed
    bcmwl, 6.30.223.248+bdcom, 4.4.0-71-generic, x86_64: installed
    bcmwl, 6.30.223.248+bdcom, 4.4.0-72-generic, x86_64: installed
    rtlwifi-new, 0.10~trusty, 4.4.0-64-generic, x86_64: installed (original_module exists)
    rtlwifi-new, 0.10~trusty, 4.4.0-66-generic, x86_64: installed (original_module exists)
    rtlwifi-new, 0.10~trusty, 4.4.0-70-generic, x86_64: installed (original_module exists)
    rtlwifi-new, 0.10~trusty, 4.4.0-71-generic, x86_64: installed (original_module exists)
    rtlwifi-new, 0.10~trusty, 4.4.0-72-generic, x86_64: installed (original_module exists)
    srseven@srseven-HP-15-Notebook-PC:~$ dpkg -l *virtualbox*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
un  virtualbox     <none>       <none>       (no description available)
ii  virtualbox-5.1 5.1.18-11400 amd64        Oracle VM VirtualBox
un  virtualbox-gue <none>       <none>       (no description available)
un  virtualbox-gue <none>       <none>       (no description available)
un  virtualbox-ose <none>       <none>       (no description available)

答案1

来自评论...

您正在运行 Trusty/14.04,内核已更新至 4.4.0-72。您已安装:

http://download.virtualbox.org/virtualbox/5.1.18/virtualbox-5.1_5.1.18-114002~Ubuntu~trusty_amd64.deb

与您的内核不匹配。您是否还安装了较新的“linux-extras”.deb 和较新的“linux-headers”.deb?如果没有,请安装它们,或从 Trusty 发行版降级到原始内核。

如果您保留了原来的 Trusty 内核,您也可以通过 GRUB 启动它。

如果保留当前内核,则需要安装较新版本的 VirtualBox,可能是这个:

http://download.virtualbox.org/virtualbox/5.1.18/virtualbox-5.1_5.1.18-114002~Ubuntu~xenial_amd64.deb

相关内容