[Bug 2007311] Re: apt-check python script doesn't catch issues before outputting bad data

Kodiak Firesmith 2007311 at bugs.launchpad.net
Mon Mar 6 18:30:47 UTC 2023


One of our python coders took a look at this issue with me today and had some observations that might help anyone trying to debug the issue:
https://stackoverflow.com/questions/75654312/why-do-the-two-python-apis-for-accessing-the-apt-cache-return-different-sets-of

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

Title:
  apt-check python script doesn't catch issues before outputting bad
  data

Status in update-notifier package in Ubuntu:
  Confirmed

Bug description:
  This type of error should be caught.

   /usr/lib/update-notifier/apt-check
  E: Unknown Error: '<class 'KeyError'>' ("The cache has no package named 'libxmlb2:amd64'")

  /usr/lib/update-notifier/apt-check --human-readable
  E: Unknown Error: '<class 'KeyError'>' ("The cache has no package named 'libxmlb2:amd64'")

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




More information about the foundations-bugs mailing list