debian 升级后virtualbox 启动不了

apt-get install virtualbox-dkms dkms -y
apt-get install virtualbox-dkms -y
apt-get install dkms -y
sudo apt-get install linux-headers-$(uname -r)
/etc/init.d/vboxdrv setup
apt-get -f install

有时要多次不成功再执行apt-get -f install 最后再重新安装 新的vbox,搞定

##可恶的报错如下
root@latop:~# /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules …done.
Uninstalling old VirtualBox DKMS kernel modules/etc/init.d/vboxdrv:行302: /usr/share/virtualbox/src/vboxhost/do_dkms: 没有那个文件或目录
…done.
Trying to register the VirtualBox kernel modules using DKMS/etc/init.d/vboxdrv:行327: /usr/share/virtualbox/src/vboxhost/do_dkms: 没有那个文件或目录
…failed!
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules …failed!
(Look at /var/log/vbox-install.log to find out what went wrong)

发表评论

电子邮件地址不会被公开。 必填项已用*标注