UpdateManager Crash

Bug #1925719 reported by weston liu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Software Updater
New
Undecided
Unassigned
update-manager (Ubuntu)
New
Undecided
Unassigned

Bug Description

In Ubuntu 2020 LTS, When I choose update system, Update Manager crash.

Following the crash report details, I found there is a bug in Update Manager scripts.

Open /usr/lib/python3/dist-packages/UpdateManager/backend/__init__.py, pkgs_inpstall_oem and pkgs_upgrade_oem variables are defined in start method.

However, these variables init in for loop and used out of for loop, the next function:
self.commit_oem(pkgs_inpstall_oem, pkgs_upgrade_oem) will crash as variables are not inited.

Fix method is obvious, When definition code is moved out of for loop, the Update Manager work successfully.

weston liu (advanceroot)
affects: launchpad → update-manager
Paul White (paulw2u)
affects: ubuntu → update-manager (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.