Bug 203738 - Uninstall dependencies cause scriptlet failure
Uninstall dependencies cause scriptlet failure
Product: Fedora
Classification: Fedora
Component: bind (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Adam Tkac
Ben Levenson
Depends On:
  Show dependency treegraph
Reported: 2006-08-23 11:07 EDT by Andrew Kroeger
Modified: 2013-04-30 19:34 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-03-16 11:29:11 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Andrew Kroeger 2006-08-23 11:07:27 EDT
Description of problem:
Attempting to uninstall DNS services.  Ran "rpm -e bind bind-chroot
caching-nameserver" and received the following error:

/var/tmp/rpm-tmp.4639: line 2: /usr/sbin/bind-chroot-admin: No such file or
error: %preun(bind-chroot-9.3.2-37.fc6.i386) scriptlet failed, exit status 1

Version-Release number of selected component (if applicable):
bind*-9.3.2-37.fc6, caching-nameserver-9.3.2-37.fc6

How reproducible:

Steps to Reproduce:
1. Install bind, bind-chroot, & caching-nameserver
2. Attempt to uninstall bind, bind-chroot, & caching-nameserver (via either rpm
or yum)
Actual results:
Error noted above.

Expected results:
Successful uninstall along with disabling the bind chroot configuration.

Additional info:
This appears to be a problem in uninstall ordering.  The bind package contains
the /usr/sbin/bind-chroot-admin executable, and is uninstalled before the
bind-chroot package.  The preun scriptlet in bind-chroot depends on
/usr/sbin/bind-chroot-admin to disable the bind-chroot configuration.

The following workaround will clean things up after the error is encountered
(but it yould be better if the ordering worked as expected):
1. Re-install just the bind package
2. Uninstall just the bind-chroot package
3. Uninstall the bind package
Comment 1 Martin Stransky 2006-08-29 11:08:33 EDT
How did you install these packages? Because the packages are being removed in
the opposite order than when they are being installed.
Comment 2 Andrew Kroeger 2006-08-29 14:00:52 EDT
I initially encountered the error after installing by checking "DNS Server" in
Anaconda on the initial install.  In subsequent testing, I have also installed
using "rpm -i bind bind-chroot caching-nameserver" and "yum install bind-chroot
caching-nameserver".  The error also occurred after installing with any of the
above methods.
Comment 3 Martin Stransky 2006-10-26 07:34:21 EDT
I'm afraid it's a bug in rpm. If I'm right rpm ignores the (postun) section in
Requires, so Requires(postun) doesn't have any effect. Or am I mistaken, paul?
Comment 4 Paul Nasrat 2007-03-14 07:10:41 EDT
We've never done erase ordering so it's more complex than just ignoring it.
Comment 5 Adam Tkac 2007-03-16 11:29:11 EDT
I've changed caching-nameserver chroot policy so this could be fixed.

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