Unable to uninstall broken package - anyone dealt successfuly with that?
Fedora - InstallationThis forum is for the discussion of installation issues with Fedora.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.