[SRU] /usr/bin/update-manager:TypeError:_on_finished:_action_done:get_deb2snap_dups:_on_finished:_action_done:get_deb2snap_dups
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-manager (Ubuntu) |
Fix Released
|
High
|
Marcus Tomlinson | ||
Focal |
Fix Released
|
High
|
Marcus Tomlinson |
Bug Description
[Impact]
The Ubuntu Error Tracker has been receiving reports about a problem regarding update-manager. This problem was most recently seen with package version 1:20.04.10, the problem page at https:/
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://
[Test Case]
This is reproducable by raising an AssertionError during the initialization of MyCache in "UpdateManager/
except Exception as e:
cache = None
[Regression Potential]
Instead of assigning the cache to None and attempting to continue the duplicates check, we now just return an empty array. It's perfectly safe to postpone this duplicates check to a later update, so there's little regression potential as far as I can see.
Related branches
- Brian Murray: Approve
- Ubuntu Core Development Team: Pending requested
-
Diff: 50 lines (+14/-3)2 files modifiedUpdateManager/backend/__init__.py (+7/-3)
debian/changelog (+7/-0)
Changed in update-manager (Ubuntu): | |
status: | Triaged → In Progress |
description: | updated |
summary: |
- /usr/bin/update- + [SRU] /usr/bin/update- manager:TypeError:_on_finished:_action_done:get_deb2snap_dups:_on_finished:_action_done:get_deb2snap_dups |
description: | updated |
Changed in update-manager (Ubuntu Focal): | |
assignee: | nobody → Marcus Tomlinson (marcustomlinson) |
importance: | Undecided → High |
status: | New → In Progress |
description: | updated |
description: | updated |
Changed in update-manager (Ubuntu Bionic): | |
status: | New → Confirmed |
Changed in update-manager (Ubuntu Eoan): | |
status: | New → Confirmed |
Changed in update-manager (Ubuntu Eoan): | |
status: | Confirmed → Invalid |
Changed in update-manager (Ubuntu Bionic): | |
status: | Confirmed → Invalid |
no longer affects: | update-manager (Ubuntu Eoan) |
no longer affects: | update-manager (Ubuntu Bionic) |
Here's the Traceback:
Traceback (most recent call last): python3/ dist-packages/ UpdateManager/ backend/ InstallBackendA ptdaemon. py", line 236, in _on_finished _action_ done(action, python3/ dist-packages/ UpdateManager/ backend/ __init_ _.py", line 319, in _action_done window_ main.duplicate_ packages = self.get_ deb2snap_ dups() python3/ dist-packages/ UpdateManager/ backend/ __init_ _.py", line 125, in get_deb2snap_dups .is_installed) :
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
if (deb in cache and cache[deb]
TypeError: argument of type 'NoneType' is not iterable
During handling of the above exception, another exception occurred:
Traceback (most recent call last): python3/ dist-packages/ UpdateManager/ backend/ InstallBackendA ptdaemon. py", line 244, in _on_finished _action_ done(action, python3/ dist-packages/ UpdateManager/ backend/ __init_ _.py", line 319, in _action_done window_ main.duplicate_ packages = self.get_ deb2snap_ dups() python3/ dist-packages/ UpdateManager/ backend/ __init_ _.py", line 125, in get_deb2snap_dups .is_installed) :
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
if (deb in cache and cache[deb]
TypeError: argument of type 'NoneType' is not iterable