unattended-upgrades: rewind_cache() may crash due to not adjusting package candidates
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unattended-upgrades (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Cosmic |
Fix Released
|
Undecided
|
Unassigned | ||
Disco |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* Unattended-upgrades may crash when rewinding cache due to not adjusting package candidates before marking them to upgrade/install.
* The fix is using adjusted marking that in effect rewinds the cache to the right, adjusted state.
[Test Case]
* test/test_rewind.py is updated to verify that rewinding included adjustments and it is ran during the build.
* Also watch the error not happening anymore.
[Regression Potential]
* The fix is very small and is not likely to cause any regression.
[Original Bug Text]
The Ubuntu Error Tracker has been receiving reports about a problem regarding unattended-
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://
description: | updated |
summary: |
- /usr/bin/unattended- - upgrade:apt_pkg.Error:try_to_upgrade:rewind_cache:mark_install:/usr/bin/unattended- - upgrade@2268:main:run:calculate_upgradable_pkgs:try_to_upgrade:rewind_cache:mark_install + rewind_cache() may crash due to not adjusting package candidates |
summary: |
- rewind_cache() may crash due to not adjusting package candidates + unattended-upgrades: rewind_cache() may crash due to not adjusting + package candidates |
This bug was fixed in the package unattended-upgrades - 1.12ubuntu1
---------------
unattended-upgrades (1.12ubuntu1) eoan; urgency=medium
* Don't crash collecting transitive dependencies when package has no candidate adjusted( ) in rewind_cache() adjusted( ) crashes when apt raises error on
(LP: #1825886)
* Use mark_install_
The original cache had packages marked with adjustments thus rewinding
should also do adjustments to reach the same state.
Also not using mark_install_
held packages. (LP: #1826157)
-- Balint Reczey <email address hidden> Fri, 26 Apr 2019 14:33:08 +0200