ubuntu使用(三)安装Virtualbox

本文介绍了在Ubuntu系统中安装VirtualBox虚拟机软件的过程及解决过程中遇到的问题。提供了详细的安装命令,并针对安装后无法启动虚拟机的情况给出了具体的解决步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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包重新安装一次。“系统工具”已经有菜单可以试用了。哈哈。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值