Bug 62615

Summary: Trigger scriptlet error when trying to remove apmd package
Product: [Retired] Red Hat Public Beta Reporter: Bill Crawford <billc>
Component: apmdAssignee: wdovlrrw <brosenkr>
Status: CLOSED RAWHIDE QA Contact: Aaron Brown <abrown>
Severity: medium Docs Contact:
Priority: medium    
Version: skipjack-beta1   
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: 2002-04-10 22:31:18 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:
Bug Depends On:    
Bug Blocks: 61590    

Description Bill Crawford 2002-04-03 04:04:36 UTC
Failure of "rpm -e apmd" ... I now have an almost-removed package which I can't
completely remove without trickery :o)
Basically there appears to be a packaging error with one or more of the scripts,
possibly the "triggerpostun" shown below ...
(I'll clean it up with --noscripts in a second, but here's a record of events)

[root@staryu root]# rpm -e apmd
error reading information on service apmd: No such file or directory
error: execution of %trigger scriptlet from apmd-3.0.2-7 failed, exit status 1
[root@staryu root]# rpm -q --triggers apmd
triggerpostun script (through /bin/sh) -- apmd <= 3.0final-6
/sbin/chkconfig --add apmd
[root@staryu root]# rpm -e apmd
error reading information on service apmd: No such file or directory
error: execution of %preun scriptlet from apmd-3.0.2-7 failed, exit status 1
[root@staryu root]# rpm -q --qf '%{preun}\n' apmd
if [ $1 = 0 ]; then
    service apmd stop > /dev/null 2>&1
    /sbin/chkconfig --del apmd
fi
[root@staryu root]# rpm -q apmd
apmd-3.0.2-7
[root@staryu root]# rpm -V apmd
missing    /etc/rc.d/init.d/apmd
missing    /etc/sysconfig/apm-scripts/apmscript
missing    /etc/sysconfig/apmd
missing    /usr/bin/apm
missing    /usr/bin/apmsleep
missing    /usr/bin/on_ac_power
missing    /usr/include/apm.h
missing    /usr/lib/libapm.a
missing    /usr/sbin/apmd
missing    /usr/share/doc/apmd-3.0.2
missing    /usr/share/doc/apmd-3.0.2/ANNOUNCE
missing    /usr/share/doc/apmd-3.0.2/ChangeLog
missing    /usr/share/doc/apmd-3.0.2/LSM
missing    /usr/share/doc/apmd-3.0.2/README
missing    /usr/share/doc/apmd-3.0.2/README.transfer
missing    /usr/share/man/man1/apm.1.gz
missing    /usr/share/man/man1/apmsleep.1.gz
missing    /usr/share/man/man1/xapm.1.gz
missing    /usr/share/man/man8/apmd.8.gz

Comment 1 Bill Nottingham 2002-04-10 22:31:13 UTC
*** Bug 63184 has been marked as a duplicate of this bug. ***

Comment 2 Bernhard Rosenkraenzer 2002-04-15 11:37:59 UTC
 Added epoch to trigger in 3.0.2-10