From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0) Description of problem: When trying to remove the package XFree86-xfs, the removal fails with a problem in the %preun scriptlet How reproducible: Always Steps to Reproduce: 1. Ensure system has XFree86-xfs-4.0.3-5 installed 2. Type rpm -e XFree86-xfs 3. Error message "error: execution of %preun scriptlet from XFree86-xfs- 4.0.3-5 failed, exit status 1 Actual Results: XFree86-xfs is still on my machine Expected Results: Expected no errors and xfs to be shown as not present Additional info:
It is the case when xfs is not running. A workaround is to do "service xfs start" and then "rpm -e XFree86-xfs". $ rpm -q --qf "%{PREUN}\n" XFree86-xfs if [ "$1" = "0" ]; then /sbin/chkconfig --del xfs /usr/sbin/userdel xfs 2>/dev/null || : /usr/sbin/groupdel xfs 2>/dev/null || : service xfs stop >/dev/null 2>&1 fi Should probably read something like this: if [ "$1" = "0" ]; then /sbin/chkconfig --del xfs service xfs stop >/dev/null 2>&1 /usr/sbin/userdel xfs 2>/dev/null || : /usr/sbin/groupdel xfs 2>/dev/null || true fi
Oops, or s/true/:/ if you prefer builtins. ;)
Thanks. I just looked at my latest source tree and the bug has been fixed already at some point. I'll check the 4.0.3 tree too and see if it is fixed there as well.