20100410

在Ubuntu下安裝或升級VirtualBox(deb檔)

sudo dpkg -i 安裝包

(deb檔是Ubuntu下的軟體封裝檔案,必須用dpkg指令安裝)

有時必須要移除就版本才能安裝新版本:
dpkg -l =>列出當前已經安裝的包
sudo dpplg -r 安裝包 =>移除安裝包


安裝過程如果出現
=========================================
Compilation of the kernel module FAILED!
VirtualBox will not start until this problem is fixed.
Please consult /var/log/vbox-install.log to find out why the kernel module does not compile.
Most probably the kernel sources were not found.
Install them
 (the package name is probably linux-headers-<version> whereby <version>  can be determined by 'uname -r')
and execute
/etc/init.d/vboxdrv setup
as root.
==========================================
解決(為何如此解決則原因不明):
1.執行 uname -r 取得自己的 Kernel Release 並取代底下的 <version>
2.sudo apt-get install gcc make linux-<version>
3.sudo /etc/init.d/vboxdrv setup

沒有留言:

張貼留言