Crash | Upgate manager from GUI when clicked on install | File "/usr/lib/python3/dist-packages/UpdateManager/UpdatesAvailable.py", line 882, in on_button_install_clicked

Bug #1910886 reported by Kumar Vaibhav
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

OS:
lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu Hirsute Hippo (development branch)
Release: 21.04
Codename: hirsute

Python version:
Python 3.9.1

Terminal o/p on running /usr/bin/python3 /usr/bin/update-manager --no-update --no-focus-on-map and clcik on 'Install Now' button

Stacktrace:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/UpdateManager/Dialogs.py", line 118, in <lambda>
    button.connect("clicked", lambda x: callback())
  File "/usr/lib/python3/dist-packages/UpdateManager/UpdatesAvailable.py", line 882, in on_button_install_clicked
    self.window_main.start_install()
  File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line 234, in start_install
    self._start_pane(install_backend)
  File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line 174, in _start_pane
    pane.start()
  File "/usr/lib/python3/dist-packages/UpdateManager/backend/__init__.py", line 61, in start
    self.commit_oem(pkgs_install_oem, pkgs_upgrade_oem)
UnboundLocalError: local variable 'pkgs_install_oem' referenced before assignment

ProblemType: Bug
DistroRelease: Ubuntu 21.04
Package: ubuntu-release-upgrader-core 1:21.04.3
ProcVersionSignature: Ubuntu 5.8.0-34.37+21.04.1-generic 5.8.18
Uname: Linux 5.8.0-34-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu55
Architecture: amd64
CasperMD5CheckResult: skip
CrashDB: ubuntu
CurrentDesktop: ubuntu:GNOME
Date: Sun Jan 10 02:35:16 2021
InstallationDate: Installed on 2018-02-21 (1053 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 (20180214)
PackageArchitecture: all
SourcePackage: ubuntu-release-upgrader
Symptom: ubuntu-release-upgrader
UpgradeStatus: Upgraded to hirsute on 2020-12-20 (20 days ago)
VarLogDistupgradeTermlog:

Revision history for this message
Kumar Vaibhav (kumarv1988) wrote :
Revision history for this message
Kumar Vaibhav (kumarv1988) wrote :

The recent update looks to be okay and working fine as per described scenario:

What's changed

At the time of bug report 2021-01-10
ubuntu-release-upgrader version: ubuntu-release-upgrader-core 1:21.04.3
Python Version: Python 3.9.1

After update on 2021-01-12
ubuntu-release-upgrader version: ubuntu-release-upgrader-core/hirsute-proposed,hirsute-proposed,now 1:21.04.4 all [installed]
Python Version: Python 3.9.1+

Revision history for this message
Brian Murray (brian-murray) wrote :

update-manager (1:21.04.3) hirsute; urgency=medium

  [ Brian Murray ]
  * UpdateManager/Dialogs.py: do not mention livepatch settings when the
    interface is not installed, thanks to Sebastien Bacher for the patch.
    (LP: #1807900)
  * UpdateManager/backend/__init__.py: Resolve unbound local error crash with
    oem package lists. Thanks to Thomas Bechtold for the patch.

  [ William Wilson ]
  * UpdateManager/Core/UpdateList.py: change to a regex from a static list
    of packages to be grouped under Ubuntu Base (LP: #1902025)

 -- Brian Murray <email address hidden> Fri, 08 Jan 2021 08:41:47 -0800

affects: ubuntu-release-upgrader (Ubuntu) → update-manager (Ubuntu)
Changed in update-manager (Ubuntu):
status: New → Fix Released
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.