Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 4 product line. The current stable release is 4.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 159008

Summary: preun script failure while removing sets of packages leads to unmet dependencies
Product: Red Hat Enterprise Linux 4 Reporter: Nat Budin <nbudin>
Component: rpmAssignee: Paul Nasrat <nobody+pnasrat>
Status: CLOSED DUPLICATE QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-01-20 21:13:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nat Budin 2005-05-27 16:32:45 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 SUSE/1.0.4-1.1

Description of problem:
If package A requires package B, and both are installed, and you attempt to remove both at once using rpm --erase, and A's preun script fails, B will still be removed, which leaves A installed and B not installed.  Since A requires B, this situation should not occur.

As an example, on RHEL 4AS, there are several packages that depend on metacity, one of which is firstboot.  If you use rpm --erase to remove these packages all at once, metacity's removal will succeed, but firstboot's preun scriptlet fails.  At the end of the transaction, metacity has been removed, but firstboot remains.

Version-Release number of selected component (if applicable):
rpm-4.3.3-7_nonptl

How reproducible:
Always

Steps to Reproduce:
1. On a stock RHEL 4AS install, run the following command as root: rpm --erase gnome-volume-manager gnome-session control-center system-config-display firstboot metacity
2. Run the following command: rpm -q firstboot metacity

  

Actual Results:  During step 1, firstboot's preun script failed.  Step 2 returned the following output:

firstboot-1.3.39-2
package metacity is not installed

Expected Results:  RPM should have attempted to uninstall firstboot BEFORE uninstalling metacity.  Since firstboot could not successfully be removed, RPM should have refused to remove metacity.

Additional info:

Comment 1 Paul Nasrat 2005-05-27 17:14:59 UTC
RPM in RHEL has never done sorted erasures based on requirements.

Work is going on in Fedora and rpm-4.4.x/HEAD atm to get sorted erasures working.

Comment 2 Jeff Johnson 2006-01-20 21:13:50 UTC

*** This bug has been marked as a duplicate of 89500 ***