sihan 发表于 2006-9-19 23:01:19

求助--rpm 安装不能安装, 删除不能删除


[root@localhost save]# rpm -e vmware
error: package vmware is not installed

[root@localhost save]# rpm -ivh VMware-workstation-5.0.0-13124.i386.rpm
Preparing...                ########################################### [100%]
      package VMwareWorkstation-5.0.0-13124 is already installed

[root@localhost save]# vmware
-bash: vmware: command not found

[root@localhost save]# rpm -qa |grep vmware
[root@localhost save]#


请问这是什么原因, 我把机子上的几乎所有的和 vmware 相关的文件都删了,
还是不行, 怀疑 rpm 是不是有自己的类似 "注册表" 的东西, 安装时先检查
这个表, 然后才安装?? 如果是这样, 我这个问题怎么解决???.
.
.
.

jozhu 发表于 2006-9-20 00:19:42

RPM好象维护一个安装软件数据库一类的东西吧?

月下刀客 发表于 2006-9-20 10:59:31

应该是程序名问题:
#rpm -ivh VMware-workstation行不?
#rpm -e VMware-workstation行不?
或者
rpm -e VMware(注意大小写)
...

happywinter 发表于 2006-9-20 11:55:22

rpm --rebuilddb试试看

sihan 发表于 2006-9-23 12:57:07

rpm --rebuilddb试试看
还是不行啊,


[root@localhost root]# rpm -rebuilddb
[root@localhost save]# rpm -ivh VMware-workstation-5.0.0-13124.i386.rpm
Preparing...                ########################################### [100%]
      package VMwareWorkstation-5.0.0-13124 is already installed
[root@localhost save]# vmware
-bash: vmware: command not found
[root@localhost save]# rpm -e wmware
error: package wmware is not installed

WeiMingzhi 发表于 2006-9-23 12:59:06

sihan 发表于 2006-9-23 13:01:50


root@localhost sihan]# rpm -e VMwareWorkstation
/var/tmp/rpm-tmp.48798: line 34: /etc/vmware/installer.sh: 没有那个文件或目录

error: %preun(VMwareWorkstation-5.0.0-13124) scriptlet failed, exit status 127



[root@localhost save]# rpm -ivh VMware-workstation-5.0.0-13124.i386.rpm
Preparing...                ########################################### [100%]
      package VMwareWorkstation-5.0.0-13124 is already installed

sihan 发表于 2006-9-23 13:19:06


[root@localhost save]# rpm -V VMware-workstation-5.0.0-13124.i386.rpm
package VMware-workstation-5.0.0-13124.i386.rpm is not installed
[root@localhost save]# rpm -ivh VMware-workstation-5.0.0-13124.i386.rpm
Preparing...                ########################################### [100%]
      package VMwareWorkstation-5.0.0-13124 is already installed
[root@localhost save]# rpm -V VMware-workstation-5.0.0-13124.i386.rpm
package VMware-workstation-5.0.0-13124.i386.rpm is not installed

# vmware
bash: vmware: command not found
# rpm -e VMwareWorkstation
/var/tmp/rpm-tmp.55872: line 34: /etc/vmware/installer.sh: 没有那个文件或目录

error: %preun(VMwareWorkstation-5.0.0-13124) scriptlet failed, exit status 127

我以前把机子上的有关vmware的文件夹自己删了.

test2002 发表于 2006-9-23 23:11:03

应该是rpm -e VMware-workstation
试试rpm -qa|grep VM* 和rpm -qa|grep vm*

fox_eagle2003 发表于 2006-9-24 01:05:38

rpm -e VMwareWorkstation-5.0.0-13124
再试试 :-)

sihan 发表于 2006-9-25 12:36:17

rpm -e VMwareWorkstation-5.0.0-13124
再试试 :-)
还是不行啊, 斑主.

# rpm -e VMwareWorkstation-5.0.0-13124
/var/tmp/rpm-tmp.27534: line 34: /etc/vmware/installer.sh: 没有那个文件或目录

error: %preun(VMwareWorkstation-5.0.0-13124) scriptlet failed, exit status 127

[root@localhost save]# rpm -V VMware-workstation-5.0.0-13124.i386.rpm
package VMware-workstation-5.0.0-13124.i386.rpm is not installed
[root@localhost save]# rpm -ivh VMware-workstation-5.0.0-13124.i386.rpm
Preparing...? ? ? ? ? ? ? ? ########################################### [100%]
? ? ? ? package VMwareWorkstation-5.0.0-13124 is already installed
[root@localhost save]# rpm -V VMware-workstation-5.0.0-13124.i386.rpm
package VMware-workstation-5.0.0-13124.i386.rpm is not installed

这不是矛盾吗?? RPM 有问题???

fox_eagle2003 发表于 2006-9-25 12:47:18

package VMwareWorkstation-5.0.0-13124
说明软件VMwareWorkstation-5.0.0-13124 (名字)已经安装了
删除是用软件名不是文件名VMwareWorkstation-5.0.0-13124 .rpm
但好像删除时出错了
少了/etc/vmware/installer.sh
检查一下,不行的话,强行安装再强行删除

sihan 发表于 2006-9-25 13:31:47

强制安装后解决了, 谢谢大家啊.

# rpm -ivh VMware-workstation-5.0.0-13124.i386.rpm --replacepkgs
页: [1]
查看完整版本: 求助--rpm 安装不能安装, 删除不能删除