无法在 ubuntu 15.10 上更新 Virtualbox

Failed to update Virtualbox on ubuntu 15.10

我把Virtualbox的版本从5.0.4更新到5.1.9,但是无法使用。报错信息如下:enter image description here

进行如下操作:

$ uname -a
 Linux pc-name 4.2.0-42-generic #49-Ubuntu SMP Tue Jun 28 21:26:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

1). 运行以下命令卸载旧版本

sudo apt-get remove virtualbox - \ * && sudo apt-get purge virtualbox - \ * && sudo rm ~ / "VirtualBox VMs" -Rf && sudo rm ~ / .config / VirtualBox / -Rf

运行中存在以下主要错误:

Dpkg: Warning: The directory /usr/share/virtualbox is not empty when the virtualbox is uninstalled, so the directory is not deleted

2).从源安装新版本(使用virtualbox.org提供的源)

sudo apt-get install -f virtualbox-5.1

运行中存在以下主要错误:

Unknown media type in type 'all / all'
Unknown media type in type 'all / allfiles'

Vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.
There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
As root.

3).我使用 dmesg 视图获取以下信息:

    [26211.111276] PPP MPPE Compression module registered
    [31955.864023] Request for unknown module key 'virtualbox: b2b55b754f3bb6a535be36ff514e9e174b01bfda' err -11
    [31958.462125] Request for unknown module key 'virtualbox: b2b55b754f3bb6a535be36ff514e9e174b01bfda' err -11
    [32012.883861] capability: warning: `VirtualBox 'uses 32-bit capabilities (legacy support in use)
    [32155.086381] Request for unknown module key 'virtualbox: b2b55b754f3bb6a535be36ff514e9e174b01bfda' err -11
    [32397.551309] Request for unknown module key 'virtualbox: b2b55b754f3bb6a535be36ff514e9e174b01bfda' err -11
    [33462.912350] Request for unknown module key 'virtualbox: b2b55b754f3bb6a535be36ff514e9e174b01bfda' err -11
    [34179.544392] Request for unknown module key 'virtualbox: b2b55b754f3bb6a535be36ff514e9e174b01bfda' err -11
    [34277.077660] Request for unknown module key 'virtualbox: b2b55b754f3bb6a535be36ff514e9e174b01bfda' err -11
    [34281.740848] Request for unknown module key 'virtualbox: b2b55b754f3bb6a535be36ff514e9e174b01bfda' err -11

4).然后我又运行:

sudo dmesg --clear
sudo /sbin/vboxconfig

5).提示以下错误

vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.

There were problems setting up VirtualBox. To re-start the set-up process, run
  /sbin/vboxconfig
As root.

6).使用dmesg查看,没有得到任何信息。 7).找到这些解决方案:8)。使用以下命令

sudo /usr/lib/virtualbox/vboxdrv.sh setup

提示以下错误:

vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.

9). dmesg 没有得到任何信息 10)。使用

dpkg -l | grep virtualbox

得到以下信息

ii virtualbox-5.1 5.1.6-110634 ~ Ubuntu ~ wily amd64 Oracle VM VirtualBox

11).使用

sudo/sbin/vboxconfig

得到以下信息

 vboxdrv.sh: Building VirtualBox kernel modules.
 vboxdrv.sh: Starting VirtualBox services.
 vboxdrv.sh: Building VirtualBox kernel modules.
 vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.

 There were problems setting up VirtualBox. To re-start the set-up process, run
  /sbin/vboxconfig
 As root.

12) 到这里,不知道怎么处理。请帮帮我,万分感谢!

检查您的 BIOS 中是否启用了安全启动。如果是这样,请禁用它。这些适用于 16.04(它在 14.04 对我有用):

https://askubuntu.com/questions/762136/cannot-reinstall-virtualbox-on-ubuntu-16-04

https://unix.stackexchange.com/questions/282265/starting-virtualbox-kernel-modules-failed