LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation
User Name
Password
Fedora - Installation This forum is for the discussion of installation issues with Fedora.

Notices


Reply
  Search this Thread
Old 12-29-2004, 08:49 AM   #1
karel2005
LQ Newbie
 
Registered: Dec 2004
Posts: 4

Rep: Reputation: 0
Question Unable to uninstall broken package - anyone dealt successfuly with that?


Hi all,

I am semi-newbie but have done a complete newbie error that caused me trouble I can't handle now. I use FC2. As I needed to scan some files for viruses, I tried to install Antivir (antivir.de free home edition) from a package downloaded manually. However, I downloaded Suse package and as it wouldn't install properly, I installed it forcebly.

Now, I have a broken package installed and can not uninstall it. Synaptic refuses to manipulate any other packages unless it uninstalls the broken antivir, but at the same time it doesn't manage to do so and the package keeps apearing in Synaptic package listing.

When trying to uninstall manually, it gives me following report

----------------------------------------------------------
[root@private-ws-192 Texts]# rpm -e antivir
/etc/init.d/avguard: line 73: /etc/rc.status: is neither file nor directory.
error: %preun(antivir-2.1.0-20) scriptlet failed, exit status 1
-----------------------------------------------------------

I googled a lot but found nothing that would help

anyone can help? Thanks 1000!

karel
 
Old 12-30-2004, 05:28 AM   #2
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Try this:
touch /etc/rc.status
 
Old 12-30-2004, 08:08 AM   #3
karel2005
LQ Newbie
 
Registered: Dec 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks /bin/bash

I tried and it obviously had some effect, but another error/s emerged:

[root@private-ws-192 Texts]# rpm -e antivir
/etc/init.d/avguard: line 73: /etc/rc.status: není souborem ani adresářem
error: %preun(antivir-2.1.0-20) scriptlet failed, exit status 1
[root@private-ws-192 Texts]# touch /etc/rc.status
[root@private-ws-192 Texts]# rpm -e antivir
/etc/init.d/avguard: line 76: rc_reset: command not found
/etc/init.d/avguard: line 123: rc_status: command not found
/etc/init.d/avguard: line 126: rc_status: command not found
/etc/init.d/avguard: line 159: rc_exit: command not found
error: %preun(antivir-2.1.0-20) scriptlet failed, exit status 127

thanks

karel
 
Old 12-31-2004, 05:02 AM   #4
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
OK that answers that question. I thought it was trying to remove the file but it's actually wanting to run the script, which is a suse script, which is why you don't have it.

This will give you a list of files installed by the package.
rpm -ql <package>

Then you can remove the files manually and do an rpm rebuild-database (I don't remember the exact command but it is in man rpm)

Before you remove the files make a list so you can undo anything which may break your system.

<edit> I almost forgot, first try this:

rpm -e --noscripts <package> #Do not execute pre- and post-uninstall scripts

If that doesn't work then try the above as a last resort.

Last edited by /bin/bash; 12-31-2004 at 05:14 AM.
 
Old 01-03-2005, 08:33 AM   #5
karel2005
LQ Newbie
 
Registered: Dec 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Many thanks /bin/bash !

"rpm -e --noscripts" worked

Its great help!

Karel
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PAM broken - can I uninstall? Balderayne Linux - Security 6 10-16-2005 08:39 PM
broken synaptics package Triune Linux - Newbie 4 09-18-2005 04:34 PM
Broken package situation digiplaya Linux - Software 2 08-27-2005 11:09 PM
What is the best way to locate a broken package on your system? bipins1979 Linux - Software 3 03-23-2005 04:30 AM
a broken package, cannot RE-fetch?! b0uncer Arch 2 09-29-2004 10:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation

All times are GMT -5. The time now is 03:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration