我正在尝试在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.
我应该手动创建设备吗?我还有什么其他选择?
卸载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。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句