Bug 153249 - Won't uninstall
Won't uninstall
Status: CLOSED WONTFIX
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: docbook-style-dsssl (Show other bugs)
3.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Ondrej Vasik
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-04-03 20:57 EDT by Tim Nelson
Modified: 2007-11-30 17:07 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-05-21 03:36:09 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Tim Nelson 2005-04-03 20:57:42 EDT
Description of problem:
The package won't uninstall due to the preun script failing.  

Version-Release number of selected component (if applicable):
docbook-style-dsssl-1.76-8

How reproducible:
Every time

Steps to Reproduce:
1. up2date docbook-style-dsssl
2. rpm -ev docbook-style-dsssl
  
Actual results:
error: %preun(docbook-style-dsssl-1.76-8) scriptlet failed, exit status 127

Expected results:
None visible (but package no longer installed)

Additional info:
I have a suspicion that it may require some other piece of software to be able
to uninstall (which I may already have removed).  I get given machines with
Redhat Enterprise preinstalled, and have to uninstall software we don't need. 
Is the preun script stored somewhere I can access it so that I can do some
further debugging?
Comment 1 Tim Waugh 2005-04-04 06:09:38 EDT
'rpm -q --scripts docbook-style-dsssl' shows you the package scriptlets.

The %preun scriptlet needs /usr/bin/install-catalog to be installed, and there
is a PreReq tag in the RPM to require the correct package (sgml-common).

Is sgml-common installed at the time of the removal of docbook-style-dsssl?
Comment 2 Tim Nelson 2005-04-05 03:10:18 EDT
I think it was originally.  If I install openjade and sgml-common, I get the
following results:
--------------------------------
# rpm -ev docbook-style-dsssl sgml-common openjade docbook-dtds xml-common
warning: /usr/share/sgml/docbook/xmlcatalog saved as
/usr/share/sgml/docbook/xmlcatalog.rpmsave
cat: /etc/sgml/catalog: No such file or directory
cat: /etc/sgml/catalog: No such file or directory
/var/tmp/rpm-tmp.68306: line 132: [: : integer expression expected
error: %preun(docbook-style-dsssl-1.76-8) scriptlet failed, exit status 127
--------------------------------
I installed them again, and then removed them in a sensible order (one at a
time), and it seems that everything worked except docbook-dtds, which gave the
error:
--------------------------------
# rpm -ev docbook-dtds
cat: /etc/sgml/catalog: No such file or directory
cat: /etc/sgml/catalog: No such file or directory
/var/tmp/rpm-tmp.95848: line 132: [: : integer expression expected
--------------------------------
The package went away, so I'm not complaining, but I mention this for your
information; you may want to open another with the errors mentioned.  I do also
wonder why the docbook-style-dsssl package fails to remove when done as part of
a group, but works if you remove it by itself with the removal prerequisites
installed.  I'm sure I'll run into the problem again sometime, and was wondering
if you have any ideas on this.  

Thanks,
Comment 3 Tim Waugh 2005-04-06 06:39:57 EDT
Those scriptlets are all a bit "delicate". :-(
Comment 4 Ondrej Vasik 2007-05-21 03:36:09 EDT
Closing as WONTFIX because there is no scheduled RHEL3.10(already missed 3.9
deadlines) release and package went away ("just cosmetic problem"). If still
occuring in RHEL5, you can open another ticket.

Note You need to log in before you can comment on or make changes to this bug.