Additional diagnostic findings:

I investigated the issue further and identified a reproducible
architecture change during ESM cache initialization.

Before calling get_apt_pkg_esm_cache():

apt_pkg.get_architectures()
['amd64', 'i386']


After calling get_apt_pkg_esm_cache():

apt_pkg.get_architectures()
['amd64']


A subsequent Python APT cache can retrieve libllvm22:amd64 but fails to 
retrieve libllvm22:i386, raising a KeyError.

This reproduces the original error from:

/usr/lib/update-notifier/apt_check.py


Specifically, the failure occurs during the phased-update check:

aptcache[pkg.get_fullname()]


Normal APT operations remain healthy:

sudo apt-get check reports no errors.
Both architectures are enabled in dpkg.
libllvm22:i386 is accessible through a normal Python APT cache before ESM cache 
initialization.

This suggests that get_apt_pkg_esm_cache() changes the effective APT
architecture configuration without correctly restoring the original
multiarch state.

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