ubuntu 下 的virtualbox 安装的问题

2025-05-10 15:08:00

1、我安港粕登漪装VirtualBox时终端给我提示:WARNING: The character device /dev/vboxdrv does not exist. Please install the virtualbox-dkms package and the appropriate headers, most likely linux-headers-generic. You will not be able to start VMs until this problem is fixed.害得我这个苦恼不停的找解决办法,可惜可惜,网上关于这方面的资料有限,而且有些我试了,有些不管用。

2、你可能试过这条语句sudo /etc/init.d/vboxdrv setup 但是可能发现最后是这个结果(Failed, trying without DKMS)Recompiling VirtualBox kernel modules ...failed! (Look at /var/log/vbox-install.log to find out what went wrong)根本没个卵用啊~~~cat一下这个vbox-install.log 发现有个什么文件NOT FOUND ,这啥意思 笔者也搞不懂,唉 不管他鸟了。

3、直接上语句,我也上抱着试一试的 态度:$dkms install virtualbox/<version>例如: $ sudo dkms install virtualbox/4.1.12最后终端提示:DKMS: install completed.居然安装上了

4、然后试了一下:sudo /etc/init.d/virtualbox start终端显示:[ ok ] Starting virtualbox (via systemctl): virtualbox.service.居然可以了 ,果断打开使用。

5、如果你ubuntu 没有头文件你可能会鳏叼爝炽碰到这个错误::Error! Your kernel headers for kernel 3.2.0-26-generic cannot be found. Please install the linux-headers-3.2.0-26-generic package, or use the --kernelsourcedir option to tell DKMS where it's located所以就要安装下面的东西::$ sudo apt-get install linux-headers-3.2.0-26-generic然后启动这个组件::$ sudo /etc/init.d/virtualbox startoK~

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢