[Bug 1826157] Re: unattended-upgrades: rewind_cache() may crash due to not adjusting package candidates
Launchpad Bug Tracker
1826157 at bugs.launchpad.net
Tue May 7 10:00:18 UTC 2019
This bug was fixed in the package unattended-upgrades - 1.10ubuntu5.1
---------------
unattended-upgrades (1.10ubuntu5.1) disco; urgency=medium
* Skip trying to upgrade held packages in call_adjusted() (LP: #1824804)
* Follow all kinds of transitive dependencies when adjusting dependencies
(LP: #1824804)
* Detect unchanged moved conffiles.
When a package moves a conffile properly without any change no conffile
prompt needs to be shown thus the package can be upgraded unattended even
when the conffile is changed locally. (LP: #1823872)
* Don't crash collecting transitive dependencies when package has no candidate
(LP: #1825886)
* Use mark_install_adjusted() in rewind_cache()
The original cache had packages marked with adjustments thus rewinding
should also do adjustments to reach the same state.
Also not using mark_install_adjusted() crashes when apt raises error on
held packages. (LP: #1826157)
- test_rewind: Update test to check if adjusted rewinding took place
-- Balint Reczey <rbalint at ubuntu.com> Fri, 26 Apr 2019 15:00:50 +0200
--
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/1826157
Title:
unattended-upgrades: rewind_cache() may crash due to not adjusting
package candidates
Status in unattended-upgrades package in Ubuntu:
Fix Released
Status in unattended-upgrades source package in Xenial:
Fix Released
Status in unattended-upgrades source package in Bionic:
Fix Released
Status in unattended-upgrades source package in Cosmic:
Fix Released
Status in unattended-upgrades source package in Disco:
Fix Released
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-upgrades. This problem was most recently seen with package version 1.10ubuntu5, the problem page at https://errors.ubuntu.com/problem/6f57d938f3aa56b3995d5bccf4637d65734d78e4 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/unattended-upgrades/+bug/1826157/+subscriptions
More information about the foundations-bugs
mailing list