Fedora安装VirtualBox出现错误解决方法

东坡下载 2012年12月20日 14:39:36

      今天小编要跟各位朋友分享的是Fedora安装VirtualBox出现错误解决方法,下面一起来看看是如何解决的吧!希望对大家有些帮助!

      fedora17下安装了VirtualBox,在一次升级内核后出现虚拟电脑无法启动。报错rc=-1908

      [root@ethost b]# /etc/sysconfig/modules/VirtualBox.modules

      ERROR: Module vboxdrv not found.

      ERROR: Module vboxnetflt not found.

      ERROR: Module vboxnetadp not found.

      [root@ethost b]# yum reinstall VirtualBox

      rpmfusion-free-updates                                             | 3.3 kB     00:00     

      rpmfusion-nonfree-updates                                          | 3.3 kB     00:00     

      updates/17/x86_64/metalink                                         | 4.6 kB     00:00     

      Loading mirror speeds from cached hostfile

      * fedora: mirrors.ustc.edu.cn

      * rpmfusion-free: mirrors.ustc.edu.cn

      * rpmfusion-free-updates: mirrors.ustc.edu.cn

      * rpmfusion-nonfree: mirrors.163.com

      * rpmfusion-nonfree-updates: mirrors.163.com

      * updates: mirrors.ustc.edu.cn

      解决依赖关系

      --> 执行事务检查

      ---> 软件包 VirtualBox.x86_64.0.4.2.4-1.fc17 将被 已重新安装

      --> 完成依赖关系计算

      依赖关系解决

      ======================================================================

      Package           架构          版本                 仓库                           大小

      =======================================================================

      重新安装:

      VirtualBox        x86_64        4.2.4-1.fc17         rpmfusion-free-updates         20 M

      事务概要

      =========================================================================

      重新安装  1 软件包

      总下载量:20 M

      安装大小:72 M

      确定吗?[y/N]:y

      下载软件包:

      VirtualBox-4.2.4-1.fc17.x86_64.rpm                                 |  20 MB     02:29     

      运行事务检查

      执行事务测试

      事务测试成功

      执行事务

      正在安装    : VirtualBox-4.2.4-1.fc17.x86_64                                        1/1 

      Verifying   : VirtualBox-4.2.4-1.fc17.x86_64                                        1/1 

      已安装:

      VirtualBox.x86_64 0:4.2.4-1.fc17 

      问题仍在。

      卸载VirtualBox,重新安装。

      [root@ethost b]# yum install VirtualBox

      已加载插件:fastestmirror, langpacks, presto, refresh-packagekit

      Loading mirror speeds from cached hostfile

      * fedora: mirrors.ustc.edu.cn

      * rpmfusion-free: mirrors.ustc.edu.cn

      * rpmfusion-free-updates: mirrors.ustc.edu.cn

      * rpmfusion-nonfree: mirrors.163.com

      * rpmfusion-nonfree-updates: mirrors.163.com

      * updates: mirrors.ustc.edu.cn

      解决依赖关系

      --> 执行事务检查

      ---> 软件包 VirtualBox.x86_64.0.4.2.4-1.fc17 将被 安装

      --> 处理依赖关系 VirtualBox-kmod = 4.2.4,它被软件包 VirtualBox-4.2.4-1.fc17.x86_64 需要

      --> 执行事务检查

      ---> 软件包 kmod-VirtualBox-3.6.9-2.fc17.x86_64.x86_64.0.4.2.4-3.fc17.4 将被 安装

      --> 完成依赖关系计算

      依赖关系解决

      ========================================================================

      Package                             架构   版本             仓库                    大小

      ========================================================================

      正在安装:

      VirtualBox                          x86_64 4.2.4-1.fc17     rpmfusion-free-updates  20 M

      为依赖而安装:

      kmod-VirtualBox-3.6.9-2.fc17.x86_64 x86_64 4.2.4-3.fc17.4   rpmfusion-free-updates 183 k

      事务概要

      ========================================================================

      安装  1 软件包 (+1 Dependent package)

      总下载量:20 M

      安装大小:73 M

      确定吗?[y/N]:y

      下载软件包:

      (1/2): kmod-VirtualBox-3.6.9-2.fc17.x86_64-4.2.4-3.fc17.4.x86_64.r | 183 kB     00:03     

      (2/2): VirtualBox-4.2.4-1.fc17.x86_64.rpm                          |  20 MB     03:42     

      ------------------------------------------------------------------------------------------

      总计                                                       91 kB/s |  20 MB     03:42     

      运行事务检查

      执行事务测试

      事务测试成功

      执行事务

      正在安装    : VirtualBox-4.2.4-1.fc17.x86_64                                        1/2 

      正在安装    : kmod-VirtualBox-3.6.9-2.fc17.x86_64-4.2.4-3.fc17.4.x86_64             2/2 

      Verifying   : kmod-VirtualBox-3.6.9-2.fc17.x86_64-4.2.4-3.fc17.4.x86_64             1/2 

      Verifying   : VirtualBox-4.2.4-1.fc17.x86_64                                        2/2 

      已安装:

      VirtualBox.x86_64 0:4.2.4-1.fc17                                                        

      作为依赖被安装:

      kmod-VirtualBox-3.6.9-2.fc17.x86_64.x86_64 0:4.2.4-3.fc17.4                             

      这次发现多出一个kmod-VirtualBox-3.6.9-2.fc17.x86_64.x86_64 0:4.2.4-3.fc17.4  。但版本好像对不上。手动安装:

      [root@ethost b]# yum install kmod-VirtualBox-4.2.4-3.fc17.5

      [root@ethost b]# /etc/sysconfig/modules/VirtualBox.modules

      于是ok,正常啦!