virtualbox 升级后1908错误,sudo: /etc/init.d/vboxdrv:找不到命令(问题记录笔记)
发表于 : 2012-11-27 16:14
1、
升级后运行虚拟机报错:
=start========================================
不能为虚拟电脑 WindowsXP1 打开一个新任务.
The virtual machine 'WindowsXP1' has terminated unexpectedly during startup with exit code 1.
明细:
返回 代码:
NS_ERROR_FAILURE (0x80004005)
组件:
Machine
界面:
IMachine {5eaa9319-62fc-4b0a-843c-0cb1940f8a91}
=end=================================================
=start=================================================
Kernel driver not installed (rc=-1908)
The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing
'/etc/init.d/vboxdrv setup'
as root. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.
=end=================================================
2、
在网上找答案,都说运行 sudo /etc/init.d/vboxdrv setup就好了
记过我在终端输入命令结果如下:
=start=================================================
mrzh@mrzh-Lenovo:~$ sudo /etc/init.d/vboxdrv setup
sudo: /etc/init.d/vboxdrv:找不到命令
mrzh@mrzh-Lenovo:~$
=end=================================================
3、
我在终端运行命令:dpkg -l
结果如下:
=start=================================================
ii virtualbox 4.1.12-dfsg-2u x86 virtualization solution - base binaries
ii virtualbox-dkm 4.1.12-dfsg-2u x86 virtualization solution - kernel module
ii virtualbox-qt 4.1.12-dfsg-2u x86 virtualization solution - Qt based user
=end=================================================
4、系统信息
=start=================================================
版本 12.04 (precise) 32 位
内核 Linux 3.2.0-33-generic-pae
GNOME 3.4.2
内存:3.9 GiB
cpu:Intel® Core™2 Duo CPU E7500 @ 2.93GHz × 2
可用的磁盘空间:73.2 GiB
=end=================================================
5、我在网上下载了virtualbox-4.2_4.2.4-81684~Ubuntu~precise_i386.deb
下载网址:
https://www.virtualbox.org/wiki/Linux_Downloads
=start=================================================
Download VirtualBox for Linux Hosts
VirtualBox 4.2.4 for Linux
Note: The package architecture has to match the Linux kernel architecture, that is, if you are running a 64-bit kernel, install the appropriate AMD64 package (it does not matter if you have an Intel or an AMD CPU). Mixed installations (e.g. Debian/Lenny ships an AMD64 kernel with 32-bit packages) are not supported. To install VirtualBox anyway you need to setup a 64-bit chroot environment.
Please choose the appropriate package for your Linux distribution:
Ubuntu 12.10 ("Quantal Quetzal") i386 | AMD64
Ubuntu 12.04 LTS ("Precise Pangolin") i386 | AMD64
=end=================================================
我选择的是“Ubuntu 12.04 LTS ("Precise Pangolin") i386”
6、安装virtualbox-4.2_4.2.4-81684~Ubuntu~precise_i386.deb
时提示:
=start=================================================
dpkg: considering removing virtualbox in favour of virtualbox-4.2 ...
dpkg: no, cannot proceed with removal of virtualbox (--auto-deconfigure will help):
virtualbox-qt depends on virtualbox (= 4.1.12-dfsg-2ubuntu0.2)
virtualbox is to be removed.
dpkg: regarding .../virtualbox-4.2_4.2.4-81684~Ubuntu~precise_i386.deb containing virtualbox-4.2:
virtualbox-4.2 conflicts with virtualbox
virtualbox (version 4.1.12-dfsg-2ubuntu0.2) is present and installed.
dpkg: error processing /home/mrzh/virtualbox-4.2_4.2.4-81684~Ubuntu~precise_i386.deb (--install):
conflicting packages - not installing virtualbox-4.2
=end=================================================
7、我使用命令:sudo apt-get remove virtualbox后再执行第六步(上面“6、”)
没想到的是,虚拟机启动成功了!
我至今无法明白到底是怎么回事!
升级后运行虚拟机报错:
=start========================================
不能为虚拟电脑 WindowsXP1 打开一个新任务.
The virtual machine 'WindowsXP1' has terminated unexpectedly during startup with exit code 1.
明细:
返回 代码:
NS_ERROR_FAILURE (0x80004005)
组件:
Machine
界面:
IMachine {5eaa9319-62fc-4b0a-843c-0cb1940f8a91}
=end=================================================
=start=================================================
Kernel driver not installed (rc=-1908)
The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing
'/etc/init.d/vboxdrv setup'
as root. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.
=end=================================================
2、
在网上找答案,都说运行 sudo /etc/init.d/vboxdrv setup就好了
记过我在终端输入命令结果如下:
=start=================================================
mrzh@mrzh-Lenovo:~$ sudo /etc/init.d/vboxdrv setup
sudo: /etc/init.d/vboxdrv:找不到命令
mrzh@mrzh-Lenovo:~$
=end=================================================
3、
我在终端运行命令:dpkg -l
结果如下:
=start=================================================
ii virtualbox 4.1.12-dfsg-2u x86 virtualization solution - base binaries
ii virtualbox-dkm 4.1.12-dfsg-2u x86 virtualization solution - kernel module
ii virtualbox-qt 4.1.12-dfsg-2u x86 virtualization solution - Qt based user
=end=================================================
4、系统信息
=start=================================================
版本 12.04 (precise) 32 位
内核 Linux 3.2.0-33-generic-pae
GNOME 3.4.2
内存:3.9 GiB
cpu:Intel® Core™2 Duo CPU E7500 @ 2.93GHz × 2
可用的磁盘空间:73.2 GiB
=end=================================================
5、我在网上下载了virtualbox-4.2_4.2.4-81684~Ubuntu~precise_i386.deb
下载网址:
https://www.virtualbox.org/wiki/Linux_Downloads
=start=================================================
Download VirtualBox for Linux Hosts
VirtualBox 4.2.4 for Linux
Note: The package architecture has to match the Linux kernel architecture, that is, if you are running a 64-bit kernel, install the appropriate AMD64 package (it does not matter if you have an Intel or an AMD CPU). Mixed installations (e.g. Debian/Lenny ships an AMD64 kernel with 32-bit packages) are not supported. To install VirtualBox anyway you need to setup a 64-bit chroot environment.
Please choose the appropriate package for your Linux distribution:
Ubuntu 12.10 ("Quantal Quetzal") i386 | AMD64
Ubuntu 12.04 LTS ("Precise Pangolin") i386 | AMD64
=end=================================================
我选择的是“Ubuntu 12.04 LTS ("Precise Pangolin") i386”
6、安装virtualbox-4.2_4.2.4-81684~Ubuntu~precise_i386.deb
时提示:
=start=================================================
dpkg: considering removing virtualbox in favour of virtualbox-4.2 ...
dpkg: no, cannot proceed with removal of virtualbox (--auto-deconfigure will help):
virtualbox-qt depends on virtualbox (= 4.1.12-dfsg-2ubuntu0.2)
virtualbox is to be removed.
dpkg: regarding .../virtualbox-4.2_4.2.4-81684~Ubuntu~precise_i386.deb containing virtualbox-4.2:
virtualbox-4.2 conflicts with virtualbox
virtualbox (version 4.1.12-dfsg-2ubuntu0.2) is present and installed.
dpkg: error processing /home/mrzh/virtualbox-4.2_4.2.4-81684~Ubuntu~precise_i386.deb (--install):
conflicting packages - not installing virtualbox-4.2
=end=================================================
7、我使用命令:sudo apt-get remove virtualbox后再执行第六步(上面“6、”)
没想到的是,虚拟机启动成功了!
我至今无法明白到底是怎么回事!