This is caused by unattended-upgrades having an ActionGroup during the clear. So, UnattendedUpgrades cache should likely overwrite clear() and make it reset the action group, for example (after making actiongroup global):
def clear(self): global actiongroup actiongroup.release() # pyflakes apt.Cache.clear(self) actiongroup = apt_pkg.ActionGroup(cache._depcache)
This is caused by unattended-upgrades having an ActionGroup during the clear. So, UnattendedUpgrades cache should likely overwrite clear() and make it reset the action group, for example (after making actiongroup global):
def clear(self): .release( ) # pyflakes Cache.clear( self) ActionGroup( cache._ depcache)
global actiongroup
actiongroup
apt.
actiongroup = apt_pkg.