update-manager: UnboundLocalError: local variable 'pkgs_install_oem' referenced before assignment

Bug #1910556 reported by Bigbiz
58
This bug affects 10 people
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Fix Released
Undecided
Unassigned
Focal
Fix Released
Undecided
Unassigned

Bug Description

This after launching update-manager in a terminal's window:

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 880, 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

I tried with sudo but nothing to do.

I've the same problem on 3 systems.

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: update-manager 1:20.04.10.2
ProcVersionSignature: Ubuntu 5.4.0-59.65-generic 5.4.78
Uname: Linux 5.4.0-59-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu27.14
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
Date: Thu Jan 7 16:30:48 2021
ExecutablePath: /usr/bin/update-manager
InstallationDate: Installed on 2019-04-13 (635 days ago)
InstallationMedia: Ubuntu 18.04.2 LTS "Bionic Beaver" - Release amd64 (20190210)
InterpreterPath: /usr/bin/python3.8
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=it_IT.UTF-8
 SHELL=/bin/bash
Python3Details: /usr/bin/python3.8, Python 3.8.5, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: /usr/bin/python2.7, Python 2.7.18, python-is-python2, 2.7.17-4
SourcePackage: update-manager
UpgradeStatus: Upgraded to focal on 2020-12-29 (8 days ago)

Revision history for this message
Bigbiz (markozz) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in update-manager (Ubuntu):
status: New → Confirmed
Revision history for this message
Julian Andres Klode (juliank) wrote :

Thanks for your bug report. This is a package from the proposed pocket which is not meant to be used by end users.

It is a regression in the fix for bug 1908050.

Changed in update-manager (Ubuntu):
status: Confirmed → Fix Released
tags: added: regression-proposed
Revision history for this message
Julian Andres Klode (juliank) wrote :

This was fixed in hirsute in

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

Changed in update-manager (Ubuntu Focal):
status: New → In Progress
summary: - update-manager is hanging after clicking on "install updates"
+ update-manager: UnboundLocalError: local variable 'pkgs_install_oem'
+ referenced before assignment
Revision history for this message
Andy Whitcroft (apw) wrote : Proposed package upload rejected

An upload of update-manager to focal-proposed has been rejected from the upload queue for the following reason: "Missing -v for current proposed version.".

Revision history for this message
Mathew Hodson (mhodson) wrote :

This bug was fixed in the package update-manager - 1:20.04.10.3

---------------
update-manager (1:20.04.10.3) focal; urgency=medium

  [ Julian Andres Klode ]
  * UpdateManager/backend/__init__.py: Fix unbound local variables regression
    introduced by the previous SRU (See LP 1910556), and correct comment

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

update-manager (1:20.04.10.2) focal; urgency=medium

  [ Iain Lane & Julian Andres Klode ]
  * Support post install enablement of OEM-enabled devices (LP: #1908050)

 -- Brian Murray <email address hidden> Wed, 13 Jan 2021 08:35:58 -0800

Changed in update-manager (Ubuntu Focal):
status: In Progress → Fix Released
tags: added: regression-updates
removed: package-from-proposed regression-proposed
tags: added: regression-update
removed: regression-updates
tags: added: package-from-proposed regression-proposed
removed: regression-update
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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