Red Hat Bugzilla – Bug 1252389
dnf doesn't catch %postun scriptlet error when reinstalling a package
Last modified: 2016-07-19 13:28:23 EDT
Description of problem:
I had to reinstall a package: java-1.8.0-openjdk-headless-1:188.8.131.52-4.b16.fc22.x86_64, that gives a %postun scriptlet error, but dnf didn't return an error.
Version-Release number of selected component (if applicable):
always with this package
Steps to Reproduce:
1. install java-1.8.0-openjdk-headless-1:184.108.40.206-4.b16.fc22.x86_64 (needs maybe needs also the normal openjdk too)
2. which java, or alternatives --display java -> returns a java
3. dnf reinstall java-1.8.0-openjdk-headless-1:220.127.116.11-4.b16.fc22.x86_64
4. which java or alternatives --display java -> returns nothing
No scriptlet error are shown in either dnf or dnf history
An indication telling that a reinstall didn't succeed would help
Not sure yet if it does it too for dnf update/remove
Can you post the DNF output? Isn't it bug 1207981? If so mark it as duplicate, please.
I have now:
I am not sure it is the same bug, he seems to get an error, but if dnf tells it was complete ?
I also reported it against java-1.8.0-openjdk-headless:
that was a duplicate of:
to try to get that scriptlet error fixed in dnf or openjdk-headless, but
I opened it against dnf too, because the rpm command returns an error that dnf doesn't. dnf just reports all was fine, but it was not.
Transaction test succeeded.
Reinstalling: java-1.8.0-openjdk-headless 1:18.104.22.168-4.b16.fc22.x86_64 1/2
Erasing : java-1.8.0-openjdk-headless-1:22.214.171.124-4.b16.fc22.x86_64 2/2
Verifying : java-1.8.0-openjdk-headless-1:126.96.36.199-4.b16.fc22.x86_64 1/2
Verifying : java-1.8.0-openjdk-headless-1:188.8.131.52-4.b16.fc22.x86_64 2/2
You should restart:
Nothing needs to be restarted
Completion plugin: Generating completion cache...
But if I run:
rpm -e --nodeps java-1.8.0-openjdk-headless 1:184.108.40.206-4.b16.fc22.x86_64
warning: %postun(java-1.8.0-openjdk-headless-1:220.127.116.11-4.b16.fc22.x86_64) scriptlet failed, exit status 2
but I can see nowhere this warning in dnf
If you still think it is a duplicate, I will close this one.
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 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
Thank you for reporting this bug and we are sorry it could not be fixed.