Public bug reported:
On Ubuntu 26.04 (Resolute Raccoon) on Lenovo hardware with `oem-sutton-
meta` installed, `update-manager` fails to refresh the cache and crashes
with a `KeyError` when checking `self.oem_metapackages`.
### Steps to Reproduce
1. Run Ubuntu 26.04 (`resolute`) on Lenovo hardware where
`_check_oem_metapackages()` detects `oem-sutton-daiwa-meta` (which is not
present in the `resolute` APT cache).
2. Launch `update-manager` (or `update-manager --debug`).
### Actual Result
`UpdateManager.refresh_cache` crashes at line 263 with an unhandled `KeyError`:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apt/cache.py", line 280, in __getitem__
rawpkg = self._cache[key]
~~~~~~~~~~~^^^^^
KeyError: 'oem-sutton-daiwa-meta'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line
263, in refresh_cache
if not self.cache[pkgname].is_installed:
~~~~~~~~~~^^^^^^^^^
File "/usr/lib/python3/dist-packages/apt/cache.py", line 282, in __getitem__
raise KeyError("The cache has no package named %r" % key)
KeyError: "The cache has no package named 'oem-sutton-daiwa-meta'"
### Expected Result
`update-manager` should gracefully ignore OEM metapackages that are not
available in the APT cache rather than failing the cache refresh.
### Suggested Fix
In `/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py` (line 265),
catch `KeyError` alongside `SystemError`:
for pkgname in self.oem_metapackages:
try:
if not self.cache[pkgname].is_installed:
self.cache[pkgname].mark_install()
except (SystemError, KeyError):
pass
ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: ubuntu-release-upgrader-core 1:26.04.27
ProcVersionSignature: Ubuntu 7.0.0-44.44-generic 7.0.14
Uname: Linux 7.0.0-44-generic x86_64
ApportVersion: 2.34.1-0ubuntu0.1
Architecture: amd64
CasperMD5CheckResult: pass
CrashDB: ubuntu
CurrentDesktop: ubuntu:GNOME
Date: Fri Nov 27 13:38:38 2026
InstallationDate: Installed on 2026-07-16 (134 days ago)
InstallationMedia: Ubuntu 24.04.4 LTS "Noble Numbat" - Release amd64 (20260210)
PackageArchitecture: all
ProcEnviron:
LANG=en_US.UTF-8
PATH=(custom, no user)
SHELL=/usr/bin/zsh
TERM=xterm-256color
XDG_RUNTIME_DIR=<set>
SourcePackage: ubuntu-release-upgrader
Symptom: ubuntu-release-upgrader
UpgradeStatus: Upgraded to resolute on 2026-11-21 (6 days ago)
VarLogDistupgradeTermlog:
** Affects: ubuntu-release-upgrader (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug dist-upgrade resolute wayland-session
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2178217
Title:
update-manager crashes with KeyError when an OEM metapackage is
missing from the APT cache
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/2178217/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs