求助--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 是不是有自己的类似 "注册表" 的东西, 安装时先检查
这个表, 然后才安装?? 如果是这样, 我这个问题怎么解决???.
.
.
. RPM好象维护一个安装软件数据库一类的东西吧? 应该是程序名问题:
#rpm -ivh VMware-workstation行不?
#rpm -e VMware-workstation行不?
或者
rpm -e VMware(注意大小写)
... rpm --rebuilddb试试看 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
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
[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的文件夹自己删了. 应该是rpm -e VMware-workstation
试试rpm -qa|grep VM* 和rpm -qa|grep vm* rpm -e VMwareWorkstation-5.0.0-13124
再试试 :-) 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 有问题??? package VMwareWorkstation-5.0.0-13124
说明软件VMwareWorkstation-5.0.0-13124 (名字)已经安装了
删除是用软件名不是文件名VMwareWorkstation-5.0.0-13124 .rpm
但好像删除时出错了
少了/etc/vmware/installer.sh
检查一下,不行的话,强行安装再强行删除 强制安装后解决了, 谢谢大家啊.
# rpm -ivh VMware-workstation-5.0.0-13124.i386.rpm --replacepkgs
页:
[1]