Bug 1652996
| Summary: | 'dnf remove --duplicates' fails with "RuntimeError: TransactionItem state is not set" | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Michal Jaegermann <michal.jnn> | ||||
| Component: | dnf | Assignee: | rpm-software-management | ||||
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 29 | CC: | dmach, jmracek, mblaha, mhatina, packaging-team-maint, rpm-software-management, vmukhame | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2018-11-26 11:41:46 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: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
I belive that the problem is fixed in dnf-4.0.9-1 (update-testing repository) where is the patch https://github.com/rpm-software-management/dnf/commit/be1e853b422ca2dbbe30c0fa7d5549cd6c8a59a4. Please if you can reproduce the issue also with dnf-4.0.9-1, don't hesitate to reopen the bug report. *** This bug has been marked as a duplicate of bug 1642796 *** |
Created attachment 1508328 [details] output from attempted duplicates handling Description of problem: With duplicate packages texlive-SIunits-svn15878.1.36-21.fc29.noarch texlive-SIunits-svn15878.1.36-22.fc29.noarch present on an installation an attempt to run 'dnf remove --duplicates' goes through all motions and with all steps apparently completed fails with: File "/usr/lib/python3.7/site-packages/libdnf/transaction.py", line 758, in endTransaction return _transaction.Swdb_endTransaction(self, dtEnd, rpmdbVersionEnd, state) RuntimeError: TransactionItem state is not set: texlive-SIunits-8:svn15878.1.36-21.fc29.noarch After that duplicate packages are still reported as present. Version-Release number of selected component (if applicable): dnf-4.0.4-2.fc29 How reproducible: Tried few times with always the same result. Additional info: A complete record of a screen output from a removal attempt is attached. I do not know if texlive-SIunits package is significant here. 'dnf remove texlive-SIunits-svn15878.1.36-21.fc29.noarch' works without any fuss with results as expected.