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)

** Package changed: python-apt (Ubuntu) => unattended-upgrades (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1803749

Title:
  apt.Cache.clear() may set apt.Package.is_auto_removable to False

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1803749/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to