Ubuntu Linux核心更新後VirtualBox無法啟動的解決辦法

來源:互聯網
上載者:User

From 獨自等待blog
幾天由於更新玩樂網站不開自己的Linux電腦,今天開了,看了一下這期間Ubuntu的更新,一堆!想都沒想就開始更新了。更新倒是一切順利。後 來開VirtualBox,居然蹦出個錯誤來:
VirtualBox kernel driver not installed. The vboxdrv kernel module was either not loaded or /dev/vboxdrv was not created for some reason. Re-setup the kernel module by executing ‘/etc/init.d/vboxdrv setup’ as root.
VBox status code: -1908 (VERR_VM_DRIVER_NOT_INSTALLED).
Result Code: 0×80004005
Component: Console
Interface: IConsole
{1dea5c4b-0753-4193-b909-22330f64ec45}
提示說在終端裡輸入
sudo /etc/init.d/vboxdrv setup
仍然不行。給的資訊是
Stopping VirtualBox kernel module: vboxdrv.
Recompiling VirtualBox kernel module: vboxdrv
* Look at /var/log/vbox-install.log to find out what went wrong
開啟/var/log/vbox-install.log檔案,上書:
cp:missing destination file operand after “/tmp/vbox.0/Module.symvers”
請嘗試執行”cp –help”來擷取更多資訊。
Makefile:73: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again.。 停止。
貌似是更新的時候升級了Linux kernel,所以vboxdrv需要重新編譯。因為是從源裡面直接更新的,沒有Linux kernel的源檔案,顯然編譯需要這些源檔案。逛了幾個論壇,說解決方案如下:
sudo apt-get install linux-headers-$(uname -r)
sudo apt-get install linux-restricted-modules-$(uname -r)
sudo /etc/init.d/vboxdrv setup
果然,終端提示編譯通過了
* Stopping VirtualBox kernel module vboxdrv [ OK ]
* Recompiling VirtualBox kernel module vboxdrv [ OK ]
* Starting VirtualBox kernel module vboxdrv [ OK ]
啟動VirtualBox,一切正常了。


 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.