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.
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 ***