Description of problem:
This traceback appeared during dnf distro-sync in the clean up phase. The system
ended up with multiple versions of packages.
Version-Release number of selected component:
cmdline: /usr/libexec/system-python /usr/bin/dnf distro-sync
runlevel: N 5
rpmtrans.py:551:_scriptError:AttributeError: 'NoneType' object has no attribute 'name'
Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/dnf/yum/rpmtrans.py", line 427, in callback
self._scriptError(amount, total, key)
File "/usr/lib/python3.5/site-packages/dnf/yum/rpmtrans.py", line 551, in _scriptError
name = pkg.name
AttributeError: 'NoneType' object has no attribute 'name'
Local variables in innermost frame:
self: <dnf.yum.rpmtrans.RPMTransaction object at 0x7f127a049c88>
Created attachment 1236877 [details]
Created attachment 1236878 [details]
Created attachment 1236879 [details]
Created attachment 1236880 [details]
This problem seems to have been caused by calibre-2.73.0-1.fc26 package failing in a preun scriptlet and therefore the package removal failing as a whole. Still, dnf should not crash.
This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle.
Changing version to '26'.
The problem was fixed in https://github.com/rpm-software-management/dnf/pull/754 and https://github.com/rpm-software-management/dnf/pull/763 and released in dnf-2.2.0-1.