PDA

View Full Version : rpm error %preun() scriptlet failed?



DaleEMoore
26th March 2006, 03:48 PM
Hi All,

RPM isn't removing a package for me, and I'm unsure how to get rid of the package. I've looked into forcing rpm to uninstall freenx but have yet to find a solution. I've tried yum and yumex with no improvement. Here's the focus of my problem:

# rpm -e freenx
error: %preun(freenx-0.4.4-2.FC5.0.noarch) scriptlet failed, exit status 1

# rpm --rebuilddb
didn't help anything.

# rpm -q freenx
freenx-0.4.4-2.FC5.0
shows you that it's there...

Many thanks for any help,
Dale E. Moore

Seve
26th March 2006, 03:53 PM
Hi:
Try # yum remove freenx

Seve

DaleEMoore
26th March 2006, 04:54 PM
When yum uses rpm to remove freenx it fails, too:

# yum remove freenx
Loading "installonlyn" plugin
Setting up Remove Process
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package freenx.noarch 0:0.4.4-2.FC5.0 set to be erased
--> Running transaction check

Dependencies Resolved

================================================== ===========================
Package Arch Version Repository Size
================================================== ===========================
Removing:
freenx noarch 0.4.4-2.FC5.0 installed 152 k

Transaction Summary
================================================== ===========================
Install 0 Package(s)
Update 0 Package(s)
Remove 1 Package(s)
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
error: %preun(freenx-0.4.4-2.FC5.0.noarch) scriptlet failed, exit status 1

Removed: freenx.noarch 0:0.4.4-2.FC5.0
Complete!

w5set
26th March 2006, 05:51 PM
rpm -qa |grep freenx
should tell ya if it's still installed.

DaleEMoore
26th March 2006, 06:40 PM
I'm certain it's still there.

# rpm -qa | grep freenx
freenx-0.4.4-2.FC5.0
# rpm -q freenx
freenx-0.4.4-2.FC5.0

DaleEMoore
26th March 2006, 07:00 PM
Thanks for all y'alls thoughts; I found it at https://bugzilla.redhat.com/bugzilla/query.cgi by searching for "rpm error %preun scriptlet failed". This seems to have worked:

# rpm -e freenx --noscripts

newleonne
14th February 2007, 04:03 AM
Thanks for all y'alls thoughts; I found it at https://bugzilla.redhat.com/bugzilla/query.cgi by searching for "rpm error %preun scriptlet failed". This seems to have worked:

# rpm -e freenx --noscripts

Great !! and thank you.

This worked for me too. Funny that I got the same error with freenx

mianosm
6th February 2014, 12:36 AM
Found this thread through a google search and wanted to say that it helped me as well.

Hate to grave dig, but at the same time this was immensely useful in figuring out why:

rpm -e <package_name>

or

yum remote <package_name>

would continually fail.

Hopefully other people who end up using Google to troubleshoot will also find it useful.