Description of problem: Kernel 3.12.7 doesn't work on my system, so I tried to remove it using both yum and dnf. Neither have been able to remove it. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1.Ensure that you're have kernel 3.12.7-300 installed 2.Try to remove it using dnf or yum 3. Actual results: Fails with scriptlet error Expected results: Should be cleanly removed Additional info: [asinha@ankur-laptop ~]$ sudo dnf -v remove kernel-3.12.7-300.fc20.x86_64 Config time: 0.012 cachedir: /var/cache/dnf/x86_64/20 Loaded plugins: noroot, kickstart initialized Noroot plugin dnf version: 0.4.11 hawkey sack setup time: 0.010 Resolving dependencies --> Starting dependency resolution --> Finding unneeded leftover dependencies ---> Package kernel.x86_64 3.12.7-300.fc20 will be erased --> Finished dependency resolution Depsolve time: 0.141 Dependencies resolved. ======================================================================================================================================================================== Package Arch Version Repository Size ======================================================================================================================================================================== Removing: kernel x86_64 3.12.7-300.fc20 @System 131 M Transaction Summary ======================================================================================================================================================================== Remove 1 Package Installed size: 131 M Is this ok [y/N]: y populate_rpm_ts: erase: kernel-3.12.7-300.fc20.x86_64 Running transaction check Transaction check succeeded. Transaction check time: 0.032 Running transaction test Transaction test succeeded. Transaction test time: 0.082 Running transaction runTransaction: rpm transaction start. error: %preun(kernel-3.12.7-300.fc20.x86_64) scriptlet failed, exit status 127 Error in PREUN scriptlet in rpm package kernel runTransaction: rpm transaction over. Warning: scriptlet or other non-fatal errors occurred during transaction. kernel-3.12.7-300.fc20.x86_64 was supposed to be removed but is not! Verifying : kernel-3.12.7-300.fc20.x86_64 1/1 VerifyTransaction time: 0.357 Transaction time: 1.146 Complete! [asinha@ankur-laptop ~]$ [asinha@ankur-laptop ~]$ sudo yum -v remove kernel-3.12.7-300.fc20.x86_64 Not loading "blacklist" plugin, as it is disabled Loading "langpacks" plugin Loading "refresh-packagekit" plugin Not loading "whiteout" plugin, as it is disabled Adding en_GB to language list Config time: 0.016 Yum version: 3.4.3 rpmdb time: 0.000 Resolving Dependencies --> Running transaction check ---> Package kernel.x86_64 0:3.12.7-300.fc20 will be erased Checking deps for kernel.x86_64 0:3.12.7-300.fc20 - e --> Finished Dependency Resolution Dependency Process ending Depsolve time: 2.295 Dependencies Resolved ======================================================================================================================================================================== Package Arch Version Repository Size ======================================================================================================================================================================== Removing: kernel x86_64 3.12.7-300.fc20 installed 131 M Transaction Summary ======================================================================================================================================================================== Remove 1 Package Installed size: 131 M Is this ok [y/N]: y Downloading packages: Member: kernel.x86_64 0:3.12.7-300.fc20 - e Removing Package kernel-3.12.7-300.fc20.x86_64 Running transaction check Transaction check time: 0.030 Running transaction test Transaction test succeeded Transaction test time: 0.083 Running transaction error: %preun(kernel-3.12.7-300.fc20.x86_64) scriptlet failed, exit status 127 Error in PREUN scriptlet in rpm package kernel-3.12.7-300.fc20.x86_64 Warning: scriptlet or other non-fatal errors occurred during transaction. Verifying : kernel-3.12.7-300.fc20.x86_64 1/1 What is this? kernel-3.12.7-300.fc20.x86_64 VerifyTransaction time: 0.171 Transaction time: 0.874 Failed: kernel.x86_64 0:3.12.7-300.fc20 Complete! [asinha@ankur-laptop ~]$
We haven't changed the preun scriptlet in a long time. I've successfully installed and removed 3.12.7 here without issue. All it does is call the "kernel-install remove" command. If you're getting an error from that, it's because kernel-install is bailing out. Did you update systemd, grubby, grub, and/or dracut recently? Is there anything in /var/log/dracut.log or /var/log/grubby that would indicate what actually failed?
*** Bug 1053957 has been marked as a duplicate of this bug. ***
It doesn't appear to be a kernel issue. For some reason, systemd rebooted in the middle of an update and caused me to reinstall. On a fresh install, I get *many* scriptlet failures with updates/installs. We're discussing it over on the QA list, but aren't really any closer to a diagnosis. I'm closing this as a wont fix since it isn't a kernel package issue. Sorry for the noise :/ An example of more failures (on a fresh F20 install and update): 35 D: ========== +++ jack-audio-connection-kit-1.9.9.5-3.fc20 x86_64-linux 0x2 36 D: Expected size: 543348 = lead(96)+sigs(1284)+pad(4)+data(541964) 37 D: Actual size: 543348 38 D: jack-audio-connection-kit-1.9.9.5-3.fc20.x86_64: Header V3 RSA/SHA256 Signature, key ID 246110c1: OK 39 D: install: jack-audio-connection-kit-1.9.9.5-3.fc20 has 31 files 40 D: %pre(jack-audio-connection-kit-1.9.9.5-3.fc20.x86_64): scriptlet start 41 D: %pre(jack-audio-connection-kit-1.9.9.5-3.fc20.x86_64): execv(/bin/sh) pid 13704 42 D: %pre(jack-audio-connection-kit-1.9.9.5-3.fc20.x86_64): waitpid(13704) rc 13704 status 7f00 43 error: %pre(jack-audio-connection-kit-1.9.9.5-3.fc20.x86_64) scriptlet failed, exit status 127 44 error: jack-audio-connection-kit-1.9.9.5-3.fc20.x86_64: install failed 45 D: ========== +++ mpd-1:0.18-0.1.git0e0be02.fc20 x86_64-linux 0x2 46 D: Expected size: 272248 = lead(96)+sigs(1284)+pad(4)+data(270864) 47 D: Actual size: 272248 48 D: mpd-1:0.18-0.1.git0e0be02.fc20.x86_64: Header V3 RSA/SHA256 Signature, key ID ae688223: OK 49 D: install: mpd-1:0.18-0.1.git0e0be02.fc20 has 20 files 50 D: %pre(mpd-1:0.18-0.1.git0e0be02.fc20.x86_64): scriptlet start 51 D: %pre(mpd-1:0.18-0.1.git0e0be02.fc20.x86_64): execv(/bin/sh) pid 13705 52 D: %pre(mpd-1:0.18-0.1.git0e0be02.fc20.x86_64): waitpid(13705) rc 13705 status 7f00 53 error: %pre(mpd-1:0.18-0.1.git0e0be02.fc20.x86_64) scriptlet failed, exit status 127 history info [asinha@eng051125 ~]$