LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   2 versions installed, can't remove either (https://www.linuxquestions.org/questions/fedora-35/2-versions-installed-cant-remove-either-282688/)

JimBass 01-26-2005 09:40 PM

2 versions installed, can't remove the bad one
 
I use the totem-xine player for mpegs and DVDs, and I'm having a problem with it. I manged to get 2 different versions of it installed, and now apt-get throws a fit every time I try to use it. I tried to uninstall the old version, but it gives and error. Here is the output from that:
Code:

[jim@primary ~]$ rpm -qa|grep totem
totem-xine-0.99.22-0.lvn.1.3
totem-xine-0.99.22-1.1.fc3.fr
[jim@primary ~]$ su
Password:
[root@primary jim]# rpm -e totem-xine-0.99.22-0.lvn.1.3
/var/tmp/rpm-tmp.63445: line 7: syntax error near unexpected token `fi'
/var/tmp/rpm-tmp.63445: line 7: `fi||:'
error: %preun(totem-xine-0.99.22-0.lvn.1.3.i386) scriptlet failed, exit status 2

I tried going to /var/tmp/rpm-tmp.63445 to see if I could correct whatever the problem is, but it doesn't exist. That confused the hell out of me. Check this out:
Code:

[jim@primary ~]$ ls -al /var/tmp/
total 32
drwxrwxrwt  4 root root 4096 Jan 26 22:33 .
drwxr-xr-x  23 root root 4096 Jan 21 01:13 ..
drwx------  4 jim  jim  4096 Jan 26 22:33 kdecache-jim
drwx------  2 root root 4096 Jan 22 00:44 kdecache-root

I removed the newer version of totem and then tried to remove the old one that generated the error, but still have no luck. Is there a way for me to remove this program?

Thanks,
JimBass

sbassett 01-27-2005 06:54 AM

Have you tried to execute just rpm -e totem-xine. If that doesn't work have you tried rebuilding the rpm database???

Please correct me anyone if the syntax is wrong:

rpm --rebuilddb

Let me know.

JimBass 01-27-2005 07:20 AM

I tried both of them, but it didn't work. Here's the results:

Code:

[root@primary jim]# rpm -e totem-xine
error: "totem-xine" specifies multiple packages
[root@primary jim]# rpm -rebuilddb
[root@primary jim]# rpm -qa|grep totem
totem-xine-0.99.22-0.lvn.4.3
totem-xine-0.99.22-0.lvn.1.3

Peace,
JimBass

sbassett 01-27-2005 08:18 AM

Can you uninstall with rpm -e totem-xine-0.99.22-0.lvn.1.3 now. Does that still return the error? Will apt-get with the -f flag work?

JimBass 01-27-2005 08:34 AM

No, I can't uninstall the totem-xine-0.99.22-0.lvn.1.3 now. Same error as show in the initial post. Apt will work if I modify the configs to allow 2 versions of totem, but I would much rather just have one version. There has to be some asbolute removal command for rpm, I tried whatever tag it is for "force", but that seems to only work for installing, not uninstalling.

Peace,
JimBass

sbassett 01-28-2005 08:52 AM

Have you tried using synaptic to remove?

ben_build#2.1.0 01-28-2005 08:57 AM

also try "yum remove totem-xine-0.99.22-0.lvn.1.3"

JimBass 01-28-2005 06:08 PM

Same failure in using yum as just doing the rpm command -
Code:

[root@primary jim]# yum remove totem-xine-0.99.22-0.lvn.1.3
Setting up Remove Process
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package totem-xine.i386 0:0.99.22-0.lvn.1.3 set to be erased
--> Running transaction check

Dependencies Resolved
Transaction Listing:
  Remove: totem-xine.i386 0:0.99.22-0.lvn.1.3
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
/var/tmp/rpm-tmp.23646: line 7: syntax error near unexpected token `fi'
/var/tmp/rpm-tmp.23646: line 7: `fi||:'
error: %preun(totem-xine-0.99.22-0.lvn.1.3.i386) scriptlet failed, exit status 2

Removed: totem-xine.i386 0:0.99.22-0.lvn.1.3
Complete!
[root@primary jim]# rpm -qa|grep totem
totem-xine-0.99.22-0.lvn.4.3
totem-xine-0.99.22-0.lvn.1.3

Synaptic isn't installed, I'm more of a CLI guy than GUI. apt-get can't uninstall it either, I've tried that already.

Peace,
JimBass


All times are GMT -5. The time now is 07:00 PM.