Virtualbox、dkms、linux-header 和 virtualbox-dkms 已安装,但据说丢失?

Virtualbox、dkms、linux-header 和 virtualbox-dkms 已安装,但据说丢失?

我正在尝试在 BunsenLabs (Debian) 系统上安装 virtualbox。

我确认我已安装所有内容:

$ sudo apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') virtualbox dkms virtualbox-dkms
Reading package lists... Done
Building dependency tree       
Reading state information... Done
dkms is already the newest version.
linux-headers-amd64 is already the newest version.
virtualbox is already the newest version.
virtualbox-dkms is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

(要升级的包是openjre-8-headless)。

但是,当我开始时virtualbox

$ virtualbox 
WARNING: The character device /dev/vboxdrv does not exist.
     Please install the virtualbox-dkms package and the appropriate
     headers, most likely linux-headers-amd64.

     You will not be able to start VMs until this problem is fixed.

重新安装一切,重新配置一切。

尝试强制创建设备也失败:

$ sudo modprobe vboxdrv
modprobe: FATAL: Module vboxdrv not found.

我应该手动创建设备吗?我还有什么其他选择?

答案1

卸载 debian 版本的virtualbox和后virtualbox-dkms,我添加了Oracle 的存储库

#Add the repository
sudo echo "deb http://download.virtualbox.org/virtualbox/debian jessie contrib" > /etc/apt/source.list.d/virtualbox.list
#Add the key
curl https://www.virtualbox.org/download/oracle_vbox_2016.asc
sudo apt-key add oracle_vbox_2016.asc

然后安装了这个virtualbox-5.1包,效果很好。

来源:freenode #virtualbox IRC 频道的用户 WeblionX。

相关内容