The stacktrace points to:
File "/usr/lib/python3/dist-packages/apt/package.py", line 541, in _records if not self.package._pcache._records.lookup(self._cand.file_list[0]): AttributeError: 'NoneType' object has no attribute 'lookup'
So, reassigning.
The stacktrace points to:
File "/usr/lib/ python3/ dist-packages/ apt/package. py", line 541, in _records _pcache. _records. lookup( self._cand. file_list[ 0]):
if not self.package.
AttributeError: 'NoneType' object has no attribute 'lookup'
So, reassigning.