就像往常一样升级了elementary os 的内核,好像是直接用系统自带的图形软件自动升级,升级后发现桌面预览没有其他软件窗口的bug解决了,但是virtualbox不能用了,提示说要执行
/etc/init.d/vboxdrv setup
既然都这样提示了,就root用户执行一下呗~~问题出现了,提示好像是
Trying to register the VirtualBox kernel modules using DKMSError! echo Your kernel headers for kernel 3.16.0-38-generic cannot be found at /lib/modules/3.16.0-38-generic/build or /lib/modules/3.16.0-38-generic/source. ...failed! (Failed, trying without DKMS) Recompiling VirtualBox kernel modules ...failed! (Look at /var/log/vbox-install.log to find out what went wrong)
出问题了~~折腾了一点时间查了下升级时没有安装
linux-headers-3.16.0-38
感觉应该是少了header,那就装上去呗,然后执行命令
sudo /etc/init.d/vboxdrv setup Stopping VirtualBox kernel modules ...done. Uninstalling old VirtualBox DKMS kernel modules ...done. Trying to register the VirtualBox kernel modules using DKMS ...done. Starting VirtualBox kernel modules ...done.
可以了,可以启动虚拟机了
时间: 2024-10-16 17:32:32