Bug 1001785

Summary: install scriptlet failed
Product: [Fedora] Fedora Reporter: charles.unix.pro
Component: acpidAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 19CC: fischer-michael, jkaluza, jskarvad, kas, ted, travneff
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-28 12:01:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description charles.unix.pro 2013-08-27 18:33:30 UTC
Description of problem:

yum update of acpid from acpid.x86_64 0:2.0.19-5.fc19 to acpid.x86_64 0:2.0.19-6.fc19 produced:

    /var/tmp/rpm-tmp.5g35cv: line 1: fg: no job control
    error: %preun(acpid-2.0.19-5.fc19.x86_64) scriptlet failed, exit status 1
    Error in PREUN scriptlet in rpm package acpid-2.0.19-5.fc19.x86_64

Version-Release number of selected component (if applicable):

 acpid-2.0.19-5.fc19.x86_64

How reproducible:


Steps to Reproduce:
1. update acpid from acpid.x86_64 0:2.0.19-5.fc19 to acpid.x86_64 0:2.0.19-6.fc19
2.
3.

Actual results:

    /var/tmp/rpm-tmp.5g35cv: line 1: fg: no job control
    error: %preun(acpid-2.0.19-5.fc19.x86_64) scriptlet failed, exit status 1
    Error in PREUN scriptlet in rpm package acpid-2.0.19-5.fc19.x86_64


Expected results:

  No errors

Additional info:

Comment 1 Jan "Yenya" Kasprzak 2013-08-28 08:26:24 UTC
This is probably not a bug in acpid, but in the RPM infrastructure. I have seen this bug today for acpid (the same versions as above), and also for nscd-2.17-13.fc19.x86_64 -> nscd-2.17-14.fc19.x86_64 update (with the same error message). Their %preun scripts are both the same: 

%systemd_preun nscd.service

So this is probably a RPM bug instead.

Comment 2 Andrew 2013-08-28 08:39:18 UTC
I have both acpid and nscd issues.

acpid: https://bugzilla.redhat.com/show_bug.cgi?id=995158 (solved?)

nscd:

/var/tmp/rpm-tmp.T5RYmW: line 1: fg: no job control
error: %preun(nscd-2.17-13.fc19.x86_64) scriptlet failed, exit status 1
Error in PREUN scriptlet in rpm package nscd-2.17-13.fc19.x86_64
error: nscd-2.17-13.fc19.x86_64: erase failed

Updating nscd-2.17-13.fc19.x86_64 -> nscd-2.17-14.fc19.x86_64

RPM version: rpm-4.11.1-1.fc19.x86_64

Comment 3 Jaroslav Škarvada 2013-08-28 12:01:02 UTC
Sorry for the inconvenience, you need to use:

# rpm -e --noscripts acpid-2.0.19-5

to get rid of the acpid-2.0.19-5. Somebody changed something in the build system and the results is that the systemd with the rpm macros wasn't pulled in during the rebuild. So several packages using the systemd macros started to fail in the pre/post phases if they were rebuild after the change. The acpid-2.0.19-6 fixes the requires, but there is no way how to fix it in the acpid-2.0.19-5. You need to uninstall it manually.

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

Comment 4 Jaroslav Škarvada 2013-09-27 09:02:19 UTC
*** Bug 1012713 has been marked as a duplicate of this bug. ***