Public bug reported:

Package: update-manager 1:26.04.5 (Ubuntu 26.04 "resolute")

Steps to reproduce
1. Use an OEM-enabled machine (here a Dell XPS 13 9320) where at least one
   installed oem-*-meta package is upgradable and none is missing. Here,
   oem-somerville-meta and oem-somerville-factory-meta were upgradable.
2. Open Software Updater and click "Install Now".

Expected: the updates install.

Actual: the window switches to the "Installing updates…" page and stays blank
(no heading, no progress bar, no Cancel button) indefinitely. aptd never gets a
CommitPackages/InstallPackages call. No traceback is printed, even with --debug.
The last lines of the --debug log are the free-space check from
on_button_install_clicked().

Cause
InstallBackend.start() with ACTION_PRE_INSTALL sorts the OEM metapackages into
pkgs_install_oem and pkgs_upgrade_oem and calls commit_oem(). In
backend/InstallBackendAptdaemon.py, commit_oem() handles only two cases:

- both lists empty: call _action_done(ACTION_PRE_INSTALL, success=True), which
  moves on to ACTION_INSTALL;
- pkgs_install_oem non-empty: run install_packages(), whose finished handler
  continues the chain.

When pkgs_install_oem is empty and pkgs_upgrade_oem is not, neither branch runs.
commit_oem() returns without starting a transaction or calling _action_done(),
so the pane waits forever.

Possible fix: when there is nothing to install, fall through to
_action_done(ACTION_PRE_INSTALL, success=True), i.e. use
`if not pkgs_install_oem:` as the early-exit condition. The OEM upgrades are
already marked in the cache, so the normal ACTION_INSTALL commit picks them up.
(Alternatively, run them as their own transaction, as is done for installs.)

Workaround: `sudo apt install --only-upgrade <the upgradable oem-*-meta
packages>` or `sudo apt upgrade`, after which Software Updater works again.

Related but different: LP: #1910556 (an UnboundLocalError in the same code
path, fixed in 2021).

ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: update-manager 1:26.04.5
ProcVersionSignature: Ubuntu 7.0.0-43.43-generic 7.0.14
Uname: Linux 7.0.0-43-generic x86_64
ApportVersion: 2.34.1-0ubuntu0.1
Architecture: amd64
CasperMD5CheckMismatches: ./casper/initrd ./casper/vmlinuz 
./scripts/chroot-scripts/os-post/70_fix-apt-installed.sh
CasperMD5CheckResult: fail
CurrentDesktop: ubuntu:GNOME
Date: Thu Nov 12 12:35:29 2026
DistributionChannelDescriptor:
 # This is the distribution channel descriptor for the OEM CDs
 # For more information see http://wiki.ubuntu.com/DistributionChannelDescriptor
 canonical-oem-somerville-jammy-amd64-20220504-33
InstallationDate: Installed on 2022-11-24 (1449 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - 
somerville-jammy-amd64-20220504-33
PackageArchitecture: all
SourcePackage: update-manager
UpgradeStatus: Upgraded to resolute on 2026-10-13 (30 days ago)

** Affects: update-manager (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug resolute wayland-session

** Summary changed:

- software update ui hangs
+ Install hangs with a blank window when OEM metapackages need an upgrade but 
none needs an install

** Description changed:

- Title: Install hangs with a blank window when OEM metapackages need an
- upgrade but none needs an install
- 
  Package: update-manager 1:26.04.5 (Ubuntu 26.04 "resolute")
  
  Steps to reproduce
  1. Use an OEM-enabled machine (here a Dell XPS 13 9320) where at least one
-    installed oem-*-meta package is upgradable and none is missing. Here,
-    oem-somerville-meta and oem-somerville-factory-meta were upgradable.
+    installed oem-*-meta package is upgradable and none is missing. Here,
+    oem-somerville-meta and oem-somerville-factory-meta were upgradable.
  2. Open Software Updater and click "Install Now".
  
  Expected: the updates install.
  
  Actual: the window switches to the "Installing updates…" page and stays blank
  (no heading, no progress bar, no Cancel button) indefinitely. aptd never gets 
a
  CommitPackages/InstallPackages call. No traceback is printed, even with 
--debug.
  The last lines of the --debug log are the free-space check from
  on_button_install_clicked().
  
  Cause
  InstallBackend.start() with ACTION_PRE_INSTALL sorts the OEM metapackages into
  pkgs_install_oem and pkgs_upgrade_oem and calls commit_oem(). In
  backend/InstallBackendAptdaemon.py, commit_oem() handles only two cases:
  
  - both lists empty: call _action_done(ACTION_PRE_INSTALL, success=True), which
-   moves on to ACTION_INSTALL;
+   moves on to ACTION_INSTALL;
  - pkgs_install_oem non-empty: run install_packages(), whose finished handler
-   continues the chain.
+   continues the chain.
  
  When pkgs_install_oem is empty and pkgs_upgrade_oem is not, neither branch 
runs.
  commit_oem() returns without starting a transaction or calling _action_done(),
  so the pane waits forever.
  
  Possible fix: when there is nothing to install, fall through to
  _action_done(ACTION_PRE_INSTALL, success=True), i.e. use
  `if not pkgs_install_oem:` as the early-exit condition. The OEM upgrades are
  already marked in the cache, so the normal ACTION_INSTALL commit picks them 
up.
  (Alternatively, run them as their own transaction, as is done for installs.)
  
  Workaround: `sudo apt install --only-upgrade <the upgradable oem-*-meta
  packages>` or `sudo apt upgrade`, after which Software Updater works again.
  
  Related but different: LP: #1910556 (an UnboundLocalError in the same code
  path, fixed in 2021).
  
  ProblemType: Bug
  DistroRelease: Ubuntu 26.04
  Package: update-manager 1:26.04.5
  ProcVersionSignature: Ubuntu 7.0.0-43.43-generic 7.0.14
  Uname: Linux 7.0.0-43-generic x86_64
  ApportVersion: 2.34.1-0ubuntu0.1
  Architecture: amd64
  CasperMD5CheckMismatches: ./casper/initrd ./casper/vmlinuz 
./scripts/chroot-scripts/os-post/70_fix-apt-installed.sh
  CasperMD5CheckResult: fail
  CurrentDesktop: ubuntu:GNOME
  Date: Thu Nov 12 12:35:29 2026
  DistributionChannelDescriptor:
-  # This is the distribution channel descriptor for the OEM CDs
-  # For more information see 
http://wiki.ubuntu.com/DistributionChannelDescriptor
-  canonical-oem-somerville-jammy-amd64-20220504-33
+  # This is the distribution channel descriptor for the OEM CDs
+  # For more information see 
http://wiki.ubuntu.com/DistributionChannelDescriptor
+  canonical-oem-somerville-jammy-amd64-20220504-33
  InstallationDate: Installed on 2022-11-24 (1449 days ago)
  InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - 
somerville-jammy-amd64-20220504-33
  PackageArchitecture: all
  SourcePackage: update-manager
  UpgradeStatus: Upgraded to resolute on 2026-10-13 (30 days ago)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2174063

Title:
  Install hangs with a blank window when OEM metapackages need an
  upgrade but none needs an install

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/2174063/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to