Chinaunix首页 | 论坛 | 博客
  • 博客访问: 10658630
  • 博文数量: 2905
  • 博客积分: 20098
  • 博客等级: 上将
  • 技术积分: 36298
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-23 05:00
文章存档

2012年(1)

2011年(3)

2009年(2901)

分类: LINUX

2009-03-23 11:15:43


VirtualBox-1.6.4 是直接在 openSUSE 网站下载的 VirtualBox-1.6.4-Linux_amd64.run 文件安装的。


在安装 VirtualBox-2.0.2_36488_openSUSE11-1.x86_64.rpm 时,出现了下面的错误提示。
+--------------------------------------------------------
laptop-1420:/VirtualBox # rpm -Uvh VirtualBox-2.0.2_36488_openSUSE11-1.x86_64.rpm
error: failed to stat /home/wandering/.gvfs: Permission denied
Preparing...                ########################################### [100%]
An old installation of VirtualBox was found. To install this package the
old package has to be removed first. Have a look at /etc/vbox/vbox.cfg to
determine the installation directory of the previous installation. After
uninstalling the old package remove the file /etc/vbox/vbox.cfg.
error: %pre(VirtualBox-2.0.2_36488_openSUSE11-1.x86_64) scriptlet failed, exit status 1
error:   install: %pre scriptlet failed (2), skipping VirtualBox-2.0.2_36488_openSUSE11-1
+--------------------------------------------------------


很明显,必须先卸载 1.6.4 才能安装 2.0.2 版本。但是通过 openSUSE 的 YaST2 和 rpm 命令却找不到 1.6.4 的安装记录。
于是我检查了
/etc/vbox/vbox.cfg文件的内容:
+--------------------------------------------------------
laptop-1420:/VirtualBox # cat /etc/vbox/vbox.cfg
# VirtualBox installation directory
INSTALL_DIR='/opt/VirtualBox-1.6.4'
# VirtualBox version
INSTALL_VER='1.6.4'
+--------------------------------------------------------


OK,接下来直接消除
VirtualBox-1.6.4 相关数据吧。
+--------------------------------------------------------
rm -r /opt/VirtualBox-1.6.4/
rm -r /etc/vbox/
+--------------------------------------------------------


再来安装 2.0.2
+--------------------------------------------------------
laptop-1420:/VirtualBox # rpm -ivh VirtualBox-2.0.2_36488_openSUSE11-1.x86_64.rpm
error: failed to stat /home/wandering/.gvfs: Permission denied
Preparing...                ########################################### [100%]
   1:VirtualBox             ########################################### [100%]

Creating group 'vboxusers'. VM users must be member of that group!

No precompiled module for this kernel found -- trying to build one. Messages
emitted during module compilation will be logged to /var/log/vbox-install.log.

Success!

Stopping VirtualBox kernel module                                     done
+--------------------------------------------------------




阅读(902) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~