/usr/bin/update-manager:TypeError:/usr/bin/update-manager@118:start_update:start_available:refresh_cache:update:_make_groups:__contains__
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-manager (Ubuntu) |
Fix Released
|
High
|
William Wilson | ||
Focal |
Fix Released
|
High
|
William Wilson | ||
Groovy |
Fix Released
|
High
|
William Wilson |
Bug Description
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.3, 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://
[Impact]
* With update-manager versions 1:20.04.10.3 or 1:20.10.2,
update-manager would crash while processing the apt
cache.
[Test Case]
* Look at the Error Tracker issues and make sure the
versions 1:20.04.11 and 1:20.10.3 do not cause this
same error.
[Where problems could occur]
* If apt is ever processing a package without the name
field, it couldcause a crash. This scenario would likely
cause a crash in many other parts of the code other than
what is being changed here
Related branches
- Brian Murray: Approve
-
Diff: 27 lines (+8/-1)2 files modifiedUpdateManager/Core/UpdateList.py (+1/-1)
debian/changelog (+7/-0)
Changed in update-manager (Ubuntu): | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in update-manager (Ubuntu Focal): | |
importance: | Undecided → High |
Changed in update-manager (Ubuntu Groovy): | |
importance: | Undecided → High |
description: | updated |
Changed in update-manager (Ubuntu): | |
assignee: | nobody → Tiago Stürmer Daitx (tdaitx) |
Changed in update-manager (Ubuntu Focal): | |
status: | New → In Progress |
Changed in update-manager (Ubuntu Groovy): | |
status: | New → In Progress |
Changed in update-manager (Ubuntu): | |
assignee: | nobody → William Wilson (jawn-smith) |
Changed in update-manager (Ubuntu Focal): | |
assignee: | nobody → William Wilson (jawn-smith) |
Changed in update-manager (Ubuntu Groovy): | |
assignee: | nobody → William Wilson (jawn-smith) |
Traceback (most recent call last): update- manager" , line 118, in <module> start_update( ) python3/ dist-packages/ UpdateManager/ UpdateManager. py", line 220, in start_update start_available () python3/ dist-packages/ UpdateManager/ UpdateManager. py", line 238, in start_available refresh_ cache() python3/ dist-packages/ UpdateManager/ UpdateManager. py", line 435, in refresh_cache packages= self.duplicate_ packages) python3/ dist-packages/ UpdateManager/ Core/UpdateList .py", line 531, in update callback) python3/ dist-packages/ UpdateManager/ Core/UpdateList .py", line 444, in _make_groups python3/ dist-packages/ apt/cache. py", line 350, in __contains__ is_real_ pkg(self. _cache[ key])
File "/usr/bin/
app.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
duplicate_
File "/usr/lib/
eventloop_
File "/usr/lib/
if pkg in cache:
File "/usr/lib/
return self.__
TypeError: Expected a string or a pair of strings
This is due to apt.package.Package objects being added to a list of strings.