[Bug 1871149] Re: False apt_pkg.CacheMismatchError
Balint Reczey
balint.reczey at canonical.com
Mon Apr 6 15:56:14 UTC 2020
** Summary changed:
- /usr/bin/unattended-upgrade:apt_pkg.CacheMismatchError:/usr/bin/unattended-upgrade at 2512:main:run:get_auto_removable:<setcomp>:is_auto_removable
+ False apt_pkg.CacheMismatchError
** Description changed:
- The Ubuntu Error Tracker has been receiving reports about a problem regarding unattended-upgrades. This problem was most recently seen with package version 2.1, the problem page at https://errors.ubuntu.com/problem/ff08f6aa104f8e3233da3081835ecc2e9f0452f5 contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
+ Python-apt throws CacheMismatchError which is almost certainly false:
+
+ Traceback (most recent call last):
+ File "/usr/bin/unattended-upgrade", line 2512, in <module>
+ sys.exit(main(options))
+ File "/usr/bin/unattended-upgrade", line 1986, in main
+ res = run(options, rootdir, mem_log, logfile_dpkg,
+ File "/usr/bin/unattended-upgrade", line 2398, in run
+ new_pending_autoremovals = get_auto_removable(cache)
+ File "/usr/bin/unattended-upgrade", line 1789, in get_auto_removable
+ return {pkg.name for pkg in cache
+ File "/usr/bin/unattended-upgrade", line 1790, in <setcomp>
+ if pkg.is_auto_removable}
+ File "/usr/lib/python3/dist-packages/apt/package.py", line 1269, in is_auto_removable
+ self._pcache._depcache.is_garbage(self._pkg))
+ apt_pkg.CacheMismatchError: Object of different cache passed as argument to apt_pkg.DepCache method
+
+ The relevant code in u-u:
+
+ def get_auto_removable(cache):
+ # type: (apt.Cache) -> AbstractSet[str]
+ return {pkg.name for pkg in cache
+ if pkg.is_auto_removable}
+
+ ---
+
+ The Ubuntu Error Tracker has been receiving reports about a problem
+ regarding unattended-upgrades. This problem was most recently seen with package version 2.1, the problem page at https://errors.ubuntu.com/problem/ff08f6aa104f8e3233da3081835ecc2e9f0452f5 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/.
** Package changed: unattended-upgrades (Ubuntu) => python-apt (Ubuntu)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to unattended-upgrades in Ubuntu.
https://bugs.launchpad.net/bugs/1871149
Title:
False apt_pkg.CacheMismatchError
Status in python-apt package in Ubuntu:
New
Bug description:
Python-apt throws CacheMismatchError which is almost certainly false:
Traceback (most recent call last):
File "/usr/bin/unattended-upgrade", line 2512, in <module>
sys.exit(main(options))
File "/usr/bin/unattended-upgrade", line 1986, in main
res = run(options, rootdir, mem_log, logfile_dpkg,
File "/usr/bin/unattended-upgrade", line 2398, in run
new_pending_autoremovals = get_auto_removable(cache)
File "/usr/bin/unattended-upgrade", line 1789, in get_auto_removable
return {pkg.name for pkg in cache
File "/usr/bin/unattended-upgrade", line 1790, in <setcomp>
if pkg.is_auto_removable}
File "/usr/lib/python3/dist-packages/apt/package.py", line 1269, in is_auto_removable
self._pcache._depcache.is_garbage(self._pkg))
apt_pkg.CacheMismatchError: Object of different cache passed as argument to apt_pkg.DepCache method
The relevant code in u-u:
def get_auto_removable(cache):
# type: (apt.Cache) -> AbstractSet[str]
return {pkg.name for pkg in cache
if pkg.is_auto_removable}
---
The Ubuntu Error Tracker has been receiving reports about a problem
regarding unattended-upgrades. This problem was most recently seen with package version 2.1, the problem page at https://errors.ubuntu.com/problem/ff08f6aa104f8e3233da3081835ecc2e9f0452f5 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/python-apt/+bug/1871149/+subscriptions
More information about the foundations-bugs
mailing list