Public bug reported:

Summary

The Ubuntu update-notifier component crashes when checking for available
updates, producing:

E: Unknown Error: '<class 'KeyError'>' ("The cache has no package named
'libllvm22:i386'")

System information

    Ubuntu 26.04 Resolute
    update-notifier: 3.207.2
    python3-update-manager: 1:26.04.5
    packagekit: 1.3.4-3ubuntu1.2
    Kernel: 7.0.0-44-generic
    NVIDIA GeForce RTX 4060
    Multiarch enabled: amd64 and i386
    Ubuntu Pro ESM repositories enabled

Steps to reproduce

    Run /usr/lib/update-notifier/apt-check.
    Observe the KeyError involving libllvm22:i386.

Additional investigation

APT dependency checks succeed without errors.

The package is accessible through a normal Python APT cache:

python3 -c "import apt; c=apt.Cache(); print(c['libllvm22:i386'].name)"

However, investigation of get_apt_pkg_esm_cache() in /usr/lib/update-
notifier/apt_check.py revealed that after ESM cache initialization, the
effective architecture list changes from:

['amd64', 'i386']

to:

['amd64']

A subsequent Python APT cache can no longer retrieve libllvm22:i386.

This suggests that ESM cache initialization is changing global APT
architecture configuration and that the original multiarch configuration
is not being correctly restored.

The issue appears to affect update-notifier's phased-update checking
rather than normal APT package management.

Expected behaviour

The update-notifier should preserve the system's configured
architectures when initializing the ESM cache and should not crash when
checking available updates.

ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: update-notifier 3.207.2
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
CurrentDesktop: ubuntu:GNOME
Date: Thu Dec  3 18:14:40 2026
InstallationDate: Installed on 2026-09-20 (74 days ago)
InstallationMedia: Ubuntu 26.04.1 LTS "Resolute Raccoon" - Release amd64 
(20260826)
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
SourcePackage: update-notifier
UpgradeStatus: No upgrade log present (probably fresh install)

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


** Tags: amd64 apport-bug 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/2186577

Title:
  The Ubuntu update-notifier component crashes when checking for
  available updates, producing:  E: Unknown Error: '<class 'KeyError'>'
  ("The cache has no package named 'libllvm22:i386'")

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


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

Reply via email to