/usr/bin/ubuntu-drivers:KeyError:__getitem__:/usr/bin/ubuntu-drivers@434:__call__:main:invoke:invoke:invoke:new_func:invoke:list:get_linux_modules_metapackage:get_linux_image_from_meta:__getitem__

Bug #1900452 reported by errors.ubuntu.com bug bridge
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-drivers-common (Ubuntu)
Fix Released
High
Alberto Milone
Groovy
Fix Released
Undecided
Unassigned

Bug Description

SRU request:

[Impact]

 * Listing the supported drivers can fail if the
   linux-restricted-modules for it are not available in the archive.

 * These changes unify the code for listing drivers (whether --gpgpu
   is passed in or not) and make it more robust.

[Test Case]

 * Install ubuntu-drivers-common (1:0.8.6.2) from -proposed.

 * Call "ubuntu-drivers list" and "ubuntu-drivers list --gpgpu",
   and make sure that neither crashes ubuntu-drivers.

[Regression Potential]

 * Low, the code should catch all the KeyErrors now.

____
The Ubuntu Error Tracker has been receiving reports about a problem regarding ubuntu-drivers-common. This problem was most recently seen with package version 1:0.8.4~0.20.04.3, the problem page at https://errors.ubuntu.com/problem/db3639ed31f86cf7cd56ed9de6898519d045469d contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/.

Changed in ubuntu-drivers-common (Ubuntu):
status: New → In Progress
assignee: nobody → Alberto Milone (albertomilone)
importance: Undecided → High
Revision history for this message
Steve Langasek (vorlon) wrote :

this is not going to make it into the release, so needs to be an SRU instead; in which case we need an SRU-compatible bug description.

Changed in ubuntu-drivers-common (Ubuntu):
status: In Progress → Incomplete
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Can we get this bug description SRUified? We'd need to know if there is some reliable test case for it or not.

description: updated
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello errors.ubuntu.com, or anyone else affected,

Accepted ubuntu-drivers-common into groovy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/ubuntu-drivers-common/1:0.8.6.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-groovy to verification-done-groovy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-groovy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in ubuntu-drivers-common (Ubuntu Groovy):
status: New → Fix Committed
tags: added: verification-needed verification-needed-groovy
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

please make sure this is also uploaded to hirsute

Revision history for this message
Ubuntu SRU Bot (ubuntu-sru-bot) wrote : Autopkgtest regression report (ubuntu-drivers-common/1:0.8.6.2)

All autopkgtests for the newly accepted ubuntu-drivers-common (1:0.8.6.2) for groovy have finished running.
The following regressions have been reported in tests triggered by the package:

software-properties/0.99.3 (armhf)

Please visit the excuses page listed below and investigate the failures, proceeding afterwards as per the StableReleaseUpdates policy regarding autopkgtest regressions [1].

https://people.canonical.com/~ubuntu-archive/proposed-migration/groovy/update_excuses.html#ubuntu-drivers-common

[1] https://wiki.ubuntu.com/StableReleaseUpdates#Autopkgtest_Regressions

Thank you!

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

This bug was fixed in the package ubuntu-drivers-common - 1:0.8.6.2

---------------
ubuntu-drivers-common (1:0.8.6.2) groovy; urgency=medium

  * ubuntu-drivers:
    - Unify metapackage listing for --gpgpu and non --gpgpu mode.
      This relies on the more robust metapackage listing of
      the non --gpgpu mode (LP: #1900452).

 -- Alberto Milone <email address hidden> Mon, 19 Oct 2020 13:42:45 +0200

Changed in ubuntu-drivers-common (Ubuntu):
status: Incomplete → Fix Released
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

this still needs verification, and is currently blocking the next update on the queue

Revision history for this message
Alberto Milone (albertomilone) wrote :

I can't reproduce the problem using the package in -proposed.

:~$ apt-cache policy ubuntu-drivers-common
ubuntu-drivers-common:
  Installed: 1:0.8.6.2
  Candidate: 1:0.8.6.2
  Version table:
 *** 1:0.8.6.2 500
        500 http://archive.ubuntu.com/ubuntu groovy-proposed/main amd64 Packages
        100 /var/lib/dpkg/status
     1:0.8.6.1 500
        500 http://it.archive.ubuntu.com/ubuntu groovy/main amd64 Packages

:~$ ubuntu-drivers list
nvidia-driver-418-server, (kernel modules provided by linux-modules-nvidia-418-server-generic-hwe-20.04-edge)
nvidia-driver-455, (kernel modules provided by linux-modules-nvidia-455-generic-hwe-20.04-edge)
nvidia-driver-450-server, (kernel modules provided by linux-modules-nvidia-450-server-generic-hwe-20.04-edge)
nvidia-driver-450, (kernel modules provided by linux-modules-nvidia-450-generic-hwe-20.04-edge)
nvidia-driver-440-server, (kernel modules provided by linux-modules-nvidia-440-server-generic-hwe-20.04-edge)

:~$ ubuntu-drivers list --gpgpu
nvidia-driver-450, (kernel modules provided by linux-modules-nvidia-450-generic-hwe-20.04-edge)
nvidia-driver-418-server, (kernel modules provided by linux-modules-nvidia-418-server-generic-hwe-20.04-edge)
nvidia-driver-450-server, (kernel modules provided by linux-modules-nvidia-450-server-generic-hwe-20.04-edge)
nvidia-driver-440-server, (kernel modules provided by linux-modules-nvidia-440-server-generic-hwe-20.04-edge)
nvidia-driver-455, (kernel modules provided by linux-modules-nvidia-455-generic-hwe-20.04-edge)

tags: added: verification-done verification-done-groovy
removed: verification-needed verification-needed-groovy
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for ubuntu-drivers-common has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

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

This bug was fixed in the package ubuntu-drivers-common - 1:0.8.6.2

---------------
ubuntu-drivers-common (1:0.8.6.2) groovy; urgency=medium

  * ubuntu-drivers:
    - Unify metapackage listing for --gpgpu and non --gpgpu mode.
      This relies on the more robust metapackage listing of
      the non --gpgpu mode (LP: #1900452).

 -- Alberto Milone <email address hidden> Mon, 19 Oct 2020 13:42:45 +0200

Changed in ubuntu-drivers-common (Ubuntu Groovy):
status: Fix Committed → Fix Released
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.