Description of problem: attempting to sync this system with "dnf distro-sync" tried to remove emacs but got error messages. There were two versions of the emacs rpm installed, the failed one and it's successor. Version-Release number of selected component (if applicable): emacs-1:25.2-9.fc28.x86_64) How reproducible: Apparently I'm unable to remove this emacs version. I'm not sure what to do at this point. rpm -e --noscripts seems to have removed this emacs so apparently the problem is resolved. Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: dnf erase emacs Dependencies resolved. ============================================================================================================================================= Package Arch Version Repository Size ============================================================================================================================================= Removing: emacs x86_64 1:25.2-9.fc28 @System 16 M Transaction Summary ============================================================================================================================================= Remove 1 Package Freed space: 16 M Is this ok [y/N]: y Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Running scriptlet: emacs-1:25.2-9.fc28.x86_64 1/1 error: %preun(emacs-1:25.2-9.fc28.x86_64) scriptlet failed, exit status 2 Error in PREUN scriptlet in rpm package emacs Error in PREUN scriptlet in rpm package emacs emacs-1:25.2-9.fc28.x86_64 was supposed to be removed but is not! Verifying : emacs-1:25.2-9.fc28.x86_64 1/1 Failed: emacs.x86_64 1:25.2-9.fc28 Error: Transaction failed
%preun %{_sbindir}/alternatives --remove emacs %{_bindir}/emacs-%{version} This is all it does. There's a corresponding %posttrans in the spec file: %posttrans %{_sbindir}/alternatives --install %{_bindir}/emacs emacs %{_bindir}/emacs-%{version} 80 Either you (or something on your system) must have corrupted the structure in /etc/alternatives or /usr/sbin/alternatives is broken. This is not the first time I'm seeing such bug report.
This is the previous bug report of the same sort, also provided by George: https://bugzilla.redhat.com/show_bug.cgi?id=1490013 George, if it fails again, please, provide the contents of your /etc/alternatives directory.
This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle. Changing version to '28'.
This message is a reminder that Fedora 28 is nearing its end of life. On 2019-May-28 Fedora will stop maintaining and issuing updates for Fedora 28. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '28'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 28 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Fedora 28 changed to end-of-life (EOL) status on 2019-05-28. Fedora 28 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.