RecursionError error in call_adjusted()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unattended-upgrades (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* Unattended-upgrades may crash and stop installing security updates on users' system due to entering infinite loop.
* The fix ensures terminating the recursive calls.
[Test Case]
* TODO / observe the crash not being reported for fixed releases on errors.ubuntu.com.
[Regression Potential]
* Unattended-upgrades now adjusts package candidates only to lower versions than the one originally offered by apt's resolver. This is a change in behavior which aligns well with the default configuration, i.e. installing packages from -security but not from -updates, since -updates almost always have higher version numbers. This change may cause using different upgrade paths when PPAs are involved and all packages can't be upgraded to the highest versions found in allowed origins, because of Conflicts: for example.
* Unexpected regressions can cause candidate adjustments not taking place, but please note that autopkgtest now includes applying all outstanding security updates for the release thus the new code is covered, too.
[Original Bug report]
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://
Traceback (most recent call last):
File "/usr/bin/
sys.
File "/usr/bin/
cache, options, allowed_origins, blacklisted_pkgs, whitelisted_pkgs)
File "/usr/bin/
whitelisted
File "/usr/bin/
cache.
File "/usr/bin/
self.
File "/usr/bin/
self.
File "/usr/bin/
summary: |
- /usr/bin/unattended- - upgrade:RecursionError:__getitem__:__getitem__:_rawpkg_to_pkg:__getitem__:/usr/bin/unattended- - upgrade@1991:main:calculate_upgradable_pkgs:try_to_upgrade:mark_upgrade_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:call_adjusted:__getitem__:_rawpkg_to_pkg:__setitem__:__init__ + RecursionError error in call_adjusted() |
summary: |
- RecursionError error in call_adjusted() + RecursionError error in call_adjusted() when packaga is pinned < 100 |
summary: |
- RecursionError error in call_adjusted() when packaga is pinned < 100 + RecursionError error in call_adjusted() when package is pinned < 100 |
description: | updated |
summary: |
- RecursionError error in call_adjusted() when package is pinned < 100 + RecursionError error in call_adjusted() |
description: | updated |
This bug was fixed in the package unattended-upgrades - 1.5ubuntu2
---------------
unattended-upgrades (1.5ubuntu2) cosmic; urgency=medium
* Reopen Cache after commit() even when frontend locking is supported.
This fixes build and operation with latest python-apt.
-- Balint Reczey <email address hidden> Tue, 28 Aug 2018 15:46:25 +0200