Description of problem: yum upgrade fails to update clamav-scanner-systemd.noarch Version-Release number of selected component (if applicable): 0:0.97.7-1.fc17 How reproducible: Not sure how this applies? Steps to Reproduce: 1. yum upgrade on system with clamav installed Actual results: Output includes: Updating : clamav-data-empty-0.97.8-2.fc17.noarch 1/22 Updating : clamav-lib-0.97.8-2.fc17.x86_64 2/22 Updating : clamav-filesystem-0.97.8-2.fc17.noarch 3/22 Updating : clamav-server-0.97.8-2.fc17.x86_64 4/22 Updating : clamav-server-systemd-0.97.8-2.fc17.noarch 5/22 Updating : clamav-scanner-systemd-0.97.8-2.fc17.noarch 6/22 Non-fatal POSTIN scriptlet failure in rpm package clamav-scanner-systemd-0.97.8-2.fc17.noarch /var/tmp/rpm-tmp.bKj3Xb: line 1: fg: no job control warning: %post(clamav-scanner-systemd-0.97.8-2.fc17.noarch) scriptlet failed, exit status 1 Updating : clamav-scanner-0.97.8-2.fc17.noarch 7/22 <skip non-clam-related output> Updating : clamav-update-0.97.8-2.fc17.x86_64 10/22 Updating : clamav-0.97.8-2.fc17.x86_64 11/22 Cleanup : clamav-0.97.7-1.fc17.x86_64 12/22 Error in PREUN scriptlet in rpm package clamav-scanner-systemd-0.97.7-1.fc17.noarch /var/tmp/rpm-tmp.ZjU6Tm: line 1: fg: no job control error: %preun(clamav-scanner-systemd-0.97.7-1.fc17.noarch) scriptlet failed, exit status 1 Cleanup : clamav-scanner-0.97.7-1.fc17.noarch 13/22 error: clamav-scanner-systemd-0.97.7-1.fc17.noarch: erase failed Cleanup : clamav-update-0.97.7-1.fc17.x86_64 14/22 Cleanup : clamav-server-systemd-0.97.7-1.fc17.noarch 15/22 Cleanup : clamav-server-0.97.7-1.fc17.x86_64 16/22 Cleanup : clamav-lib-0.97.7-1.fc17.x86_64 17/22 <skip non-clam-related output> Cleanup : clamav-data-empty-0.97.7-1.fc17.noarch 19/22 Cleanup : clamav-filesystem-0.97.7-1.fc17.noarch 20/22 <skip non-clam-related output> Verifying : clamav-scanner-0.97.8-2.fc17.noarch 1/22 Verifying : clamav-server-0.97.8-2.fc17.x86_64 2/22 Verifying : clamav-lib-0.97.8-2.fc17.x86_64 3/22 Verifying : clamav-filesystem-0.97.8-2.fc17.noarch 4/22 Verifying : clamav-update-0.97.8-2.fc17.x86_64 5/22 Verifying : fprintd-pam-0.4.1-3.fc17.x86_64 6/22 Verifying : clamav-server-systemd-0.97.8-2.fc17.noarch 7/22 Verifying : clamav-data-empty-0.97.8-2.fc17.noarch 8/22 Verifying : clamav-scanner-systemd-0.97.8-2.fc17.noarch 9/22 <skip non-clam-related output> Verifying : clamav-0.97.8-2.fc17.x86_64 11/22 Verifying : clamav-0.97.7-1.fc17.x86_64 12/22 Verifying : clamav-data-empty-0.97.7-1.fc17.noarch 13/22 Verifying : clamav-lib-0.97.7-1.fc17.x86_64 14/22 Verifying : clamav-server-0.97.7-1.fc17.x86_64 15/22 Verifying : clamav-update-0.97.7-1.fc17.x86_64 16/22 Verifying : clamav-filesystem-0.97.7-1.fc17.noarch 17/22 Verifying : clamav-scanner-systemd-0.97.7-1.fc17.noarch 18/22 Verifying : clamav-scanner-0.97.7-1.fc17.noarch 19/22 <skip non-clam-related output> Verifying : clamav-server-systemd-0.97.7-1.fc17.noarch 22/22 Updated: clamav.x86_64 0:0.97.8-2.fc17 clamav-data-empty.noarch 0:0.97.8-2.fc17 clamav-filesystem.noarch 0:0.97.8-2.fc17 clamav-lib.x86_64 0:0.97.8-2.fc17 clamav-scanner.noarch 0:0.97.8-2.fc17 clamav-scanner-systemd.noarch 0:0.97.8-2.fc17 clamav-server.x86_64 0:0.97.8-2.fc17 clamav-server-systemd.noarch 0:0.97.8-2.fc17 clamav-update.x86_64 0:0.97.8-2.fc17 <skip non-clam-related output> Failed: clamav-scanner-systemd.noarch 0:0.97.7-1.fc17 Expected results: yum upgrade to complete without errors. Additional info:
Sorry for the noise. I searched on the package and not the scriptlet error itself. I realise now this is just a particular instance of a more general bug and cannot be fixed in the package itself. The work around, I believe, is to do rpm -e --noscripts clamav-scanner-systemd-0.97.7-1.fc17.noarch to remove the old version of the package. rpm -q clamav-scanner-systemd then shows the desired results and yum upgrade succeeds with nothing to do.