list-oem-metapackages crashed with AttributeError in packages_for_modalias(): 'Cache' object has no attribute 'packages'

Bug #1964923 reported by Leó Kolbeinsson
518
This bug affects 121 people
Affects Status Importance Assigned to Milestone
OEM Priority Project
Fix Released
Undecided
Unassigned
update-notifier (Ubuntu)
Fix Released
High
Unassigned
Jammy
Fix Released
High
Unassigned

Bug Description

This bug occurred after install of Ubuntu Mate Jammy daily ISO 15-03-2022

Test machine Dell Optiplex 7060 in UEFI+secure boot mode.

ProblemType: Crash
DistroRelease: Ubuntu 22.04
Package: update-notifier-common 3.192.51
ProcVersionSignature: Ubuntu 5.15.0-22.22-generic 5.15.19
Uname: Linux 5.15.0-22-generic x86_64
ApportVersion: 2.20.11-0ubuntu79
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: MATE
Date: Tue Mar 15 10:21:14 2022
ExecutablePath: /usr/lib/update-notifier/list-oem-metapackages
InstallationDate: Installed on 2022-03-15 (0 days ago)
InstallationMedia: Ubuntu-MATE 22.04 LTS "Jammy Jellyfish" - Alpha amd64 (20220315)
InterpreterPath: /usr/bin/python3.10
PackageArchitecture: all
ProcCmdline: /usr/bin/python3 /usr/lib/update-notifier/list-oem-metapackages
Python3Details: /usr/bin/python3.10, Python 3.10.2, python3-minimal, 3.10.1-0ubuntu1
PythonArgs: ['/usr/lib/update-notifier/list-oem-metapackages']
PythonDetails: N/A
SourcePackage: update-notifier
Title: list-oem-metapackages crashed with AttributeError in packages_for_modalias(): 'Cache' object has no attribute 'packages'
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo

Revision history for this message
Leó Kolbeinsson (leok) wrote :
information type: Private → Public
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in update-notifier (Ubuntu):
status: New → Confirmed
Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/1964923

tags: added: iso-testing
Revision history for this message
Marcos Nascimento (wstlmn) wrote :

This message occurred after the system update - Ubuntu Jammy Jellyfish (development branch).

Revision history for this message
Brian Murray (brian-murray) wrote :

The crash is actually in ubuntu-drivers-common.

Changed in ubuntu-drivers-common (Ubuntu):
status: New → Confirmed
importance: Undecided → High
tags: added: rls-jj-incoming
Changed in update-notifier (Ubuntu):
importance: Undecided → High
tags: added: fr-2117
tags: removed: rls-jj-incoming
Revision history for this message
Chris Guiver (guiverc) wrote :

Xubuntu jammy install (replace partition) to
- hp dc7700 (c2d-e6320, 5gb, nvidia quadro nvs 290)

and whilst performing post-install checks an error message appeared; this bug was suggested on filing....

tags: added: oem-priority
Revision history for this message
Bin Li (binli) wrote :

Here is the crash file.

Revision history for this message
Bin Li (binli) wrote :

After debugging, I found this issue is still related to list-oem-metapackages in update-notifier, I just switch apt to apt_pkg, and is_installed is also not attribute of pkg.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "0001-apt.cache-has-no-attribute-packages.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Eric Carvalho (eric-carvalho) wrote :

The patch in message #8 fixes this bug for me.

no longer affects: ubuntu-drivers-common (Ubuntu)
no longer affects: ubuntu-drivers-common (Ubuntu Jammy)
Revision history for this message
Joshua Peisach (itzswirlz) wrote :

Confirmed on Ubuntu Cinnamon Remix

Revision history for this message
Anony Moose (foobidoo) wrote :

#1965958 is a potential duplicate

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

FYI - This also seems to affect all Ubuntu Desktop installs on VMware where we got a few reports. I'll redirect people here ...

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package update-notifier - 3.192.52

---------------
update-notifier (3.192.52) jammy; urgency=medium

  [ Robert Ancell ]
  * Disable Ubuntu Pro notification (LP: #1965996)

  [ Alberto Milone ]
  * data/list-oem-metapackages:
    - Fully transition to apt_pkg. This makes the code compatible
      with the new apt_pkg based UbuntuDrivers (LP: #1964923).
      Credit goes to Bin Li for spotting the problem and
      suggesting a fix.

 -- Alberto Milone <email address hidden> Thu, 24 Mar 2022 17:28:02 +0100

Changed in update-notifier (Ubuntu Jammy):
status: Confirmed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote :

This was not actually fully fixed and bug 1966811 is about a crash with list-oem-metapackages which I've uploaded a fix for.

Changed in oem-priority:
status: New → Fix Released
tags: added: jiayi
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.