This is a safety check added in python-apt to prevent old package objects being reused in new (dep)caches. since the cache operates on package ids, and the package ids might change, there are three things that can happen:
(1) If # of packages in new cache < # in old cache: SEGV (2) If id changed, functions called on the package might operate on a different package (3) If you are lucky, everything works ** Changed in: apt (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apt in Ubuntu. https://bugs.launchpad.net/bugs/1767875 Title: /usr/bin/update- manager:ValueError:restart_icon_renderer_data_func:pkg_requires_restart:__get_candidate Status in apt package in Ubuntu: Invalid Status in update-manager package in Ubuntu: New Bug description: The Ubuntu Error Tracker has been receiving reports about a problem regarding update-manager. This problem was most recently seen with package version 1:18.04.11, the problem page at https://errors.ubuntu.com/problem/a2ba8d3ab5e432b3c15f172ded6d473f4c00720a contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports. If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1767875/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp