ubuntu使用(三)安装Virtualbox

ubuntu使用(三)安装Virtualbox

下载地址
http://www.virtualbox.org/wiki/Linux_Downloads

地址:
http://dlc.sun.com.edgesuite.net/virtualbox/3.2.10/virtualbox-3.2_3.2.10-66523~Ubuntu~karmic_i386.deb

命令说明:
dpkg -i package.deb 安装包
dpkg -r package 删除包
dpkg -P package 删除包(包括配置文件)
dpkg -L package 列出与该包关联的文件
dpkg -l package 显示该包的版本
dpkg –unpack package.deb 解开 deb 包的内容
dpkg -S keyword 搜索所属的包内容
dpkg -l 列出当前已安装的包
dpkg -c package.deb 列出 deb 包的内容
dpkg –configure package 配置包

>dpkg -i virtualbox-3.2_3.2.10-66523~Ubuntu~karmic_i386.deb
安装成功,运行:
>VirtualBox
报错如下:
root@sillycat-laptop:/home/sillycat/Downloads# VirtualBox
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (2.6.31-22-generic) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /etc/init.d/vboxdrv setup

         You will not be able to start VMs until this problem is fixed.
Failed to open the X11 display!

运行命令:
>sudo /etc/init.d/vboxdrv setup
报错如下:
root@sillycat-laptop:/home/sillycat/Downloads# sudo /etc/init.d/vboxdrv setup
* Stopping VirtualBox kernel modules
*  done.
* Uninstalling old VirtualBox DKMS kernel modules
*  done.
* Removing old VirtualBox netadp kernel module
*  done.
* Removing old VirtualBox netflt kernel module
*  done.
* Removing old VirtualBox kernel module
*  done.
* Trying to register the VirtualBox kernel modules using DKMS

* Failed, trying without DKMS
* Recompiling VirtualBox kernel modules

运行命令:
>apt-get install dkms

重新到图形界面上,双击deb包重新安装一次。“系统工具”已经有菜单可以试用了。哈哈。

猜你喜欢

转载自sillycat.iteye.com/blog/809580