[Jammy][regression] u-d-c default to use 470 instead of 510

Bug #1964747 reported by jeremyszu
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OEM Priority Project
Fix Released
Critical
jeremyszu
ubuntu-drivers-common (Ubuntu)
Fix Released
Critical
Alberto Milone
Bionic
In Progress
Critical
Alberto Milone
Focal
Fix Released
Critical
Alberto Milone
Impish
Fix Released
Critical
Alberto Milone

Bug Description

[Impact]

 * In Ubuntu 22.04, ubuntu-drivers install will install nvidia-470 instead of 510. (the ubuntu-drivers install is the best and recommended way to install nvidia driver).
 * nvidia-470 is LTSB (although webpage shows PB) and nvidia-510 is PB, in this case, we need to chose the newer version since the support is fair in both version.
 * Also, 22.04 announces Wayland supports but nvidia-470 doesn't support in Wayland scope at least from gdm upstream.

[Test Plan]

 * Call "ubuntu-drivers debug" and check that 510 is marked as "(auto-install)"
```
...
=== matching driver packages ===
nvidia-driver-510: installed: <none> available: 510.54-0ubuntu2 [distro] non-free modalias: pci:v000010DEd000025A0sv00001028sd00000A61bc03sc02i00 path: /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 vendor: NVIDIA Corporation model: GA107M [GeForce RTX 3050 Ti Mobile]
...
nvidia-driver-470: installed: <none> available: 470.103.01-0ubuntu2 (auto-install) [distro] non-free modalias: pci:v000010DEd000025A0sv00001028sd00000A61bc03sc02i00 path: /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 vendor: NVIDIA Corporation model: GA107M [GeForce RTX 3050 Ti Mobile] support level: LTSB
...
```
 * As you can see, "(auto-install)" points to 470 because it owns LTSB tag.

[Fix]
 * Adjust the priority in UbuntuDrivers/detect.py, if the PB and LTSB versions found, then it needs to pick the newer version one.

[Where problems could occur]
 * It has less possible to introduce regression since the patch only changes _cmp_gfx_alternatives() which counts the priority of nvidia drivers be installed.
 * In Ubuntu, we have nvidia-390, 470 and 510 so far as I known and these cases are listed in test_system_driver_packages_chroot_support_branch_pb.

---

+ nvidia-graphics-drivers-510 (510.54-0ubuntu0.20.04.1)
+
+ * New upstream release (LP: #1961075):
+ - Fixed a bug that could cause GPU exceptions when minimizing a
+ fullscreen Vulkan application on certain desktops, such as
+ Plasma.
+ * debian/templates/control.in:
+ - Set XB-Support to PB (production branch).
+ * debian/rules.defs:
+ - Add support for video ABI 25.

---

Since
  * debian/templates/control.in:
    - Set XB-Support to PB (production branch).

The u-d-c will choose LTS branch instead of PB branch.

because `def _cmp_gfx_alternatives(x, y):` doesn't define PB.

[Additional information]
If installed 470 instead of 510, then it will cause
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/1963701

jeremyszu (os369510)
tags: added: oem-priority
Changed in oem-priority:
assignee: nobody → jeremyszu (os369510)
importance: Undecided → Critical
status: New → Confirmed
description: updated
jeremyszu (os369510)
description: updated
Changed in nvidia-graphics-drivers-510 (Ubuntu):
assignee: nobody → Alberto Milone (albertomilone)
status: New → In Progress
importance: Undecided → Critical
Changed in ubuntu-drivers-common (Ubuntu):
status: New → In Progress
importance: Undecided → Critical
assignee: nobody → Alberto Milone (albertomilone)
no longer affects: nvidia-graphics-drivers-510 (Ubuntu)
Changed in ubuntu-drivers-common (Ubuntu Bionic):
assignee: nobody → Alberto Milone (albertomilone)
Changed in ubuntu-drivers-common (Ubuntu Focal):
assignee: nobody → Alberto Milone (albertomilone)
Changed in ubuntu-drivers-common (Ubuntu Impish):
assignee: nobody → Alberto Milone (albertomilone)
Changed in ubuntu-drivers-common (Ubuntu Bionic):
importance: Undecided → Critical
Changed in ubuntu-drivers-common (Ubuntu Focal):
importance: Undecided → Critical
Changed in ubuntu-drivers-common (Ubuntu Impish):
importance: Undecided → Critical
Changed in ubuntu-drivers-common (Ubuntu Bionic):
status: New → In Progress
Changed in ubuntu-drivers-common (Ubuntu Focal):
status: New → In Progress
Changed in ubuntu-drivers-common (Ubuntu Impish):
status: New → In Progress
jeremyszu (os369510)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

---------------
ubuntu-drivers-common (1:0.9.6.1) jammy; urgency=medium

  * UbuntuDrivers/detect.py:
    - Handle Production branches (PB) (LP: #1964747).
    - Always prefer PB and LTSB, and pick the highest of the two
      whenever possible.
  * tests/test_ubuntu_drivers.py:
    - Add test_system_driver_packages_chroot_support_branch_pb and
      test_system_driver_packages_chroot_support_branch_pb_1, to
      keep track of our policy on PB and LTSB releases.

 -- Alberto Milone <email address hidden> Wed, 16 Mar 2022 15:59:19 +0100

Changed in ubuntu-drivers-common (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Alberto Milone (albertomilone) wrote :

I have just uploaded ubuntu-drivers-common_0.9.0~0.20.04.7 and ubuntu-drivers-common_0.9.2.4~0.21.10.2.

Note: this will have to be verified together with LP: #1958488, if we want both fixes released at the same time.

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

@Alberto - the fix for bug 1958488 was released yesterday so the verifications can be uncoupled now. Will you please reupload ubuntu-drivers-common to -proposed with a source.changes file that doesn't reference the previous bug anymore? Thanks in advance.

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

@Brian: I have just re-uploaded the sources. Thanks.

Revision history for this message
Chris Halse Rogers (raof) wrote : Please test proposed package

Hello jeremyszu, or anyone else affected,

Accepted ubuntu-drivers-common into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/ubuntu-drivers-common/1:0.9.0~0.20.04.7 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-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. 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 Focal):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-focal
Revision history for this message
Chris Halse Rogers (raof) wrote :

Hello jeremyszu, or anyone else affected,

Accepted ubuntu-drivers-common into impish-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/ubuntu-drivers-common/1:0.9.2.4~0.21.10.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-impish to verification-done-impish. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-impish. 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 Impish):
status: In Progress → Fix Committed
tags: added: verification-needed-impish
Revision history for this message
jeremyszu (os369510) wrote :

Focal: 1:0.9.0~0.20.04.7

before upgrading:
available: 470.103.01-0ubuntu0.20.04.1 (auto-install)
after upgrading:
available: 510.60.02-0ubuntu0.20.04.2 (auto-install)

tags: added: verification-done verification-done-focal
removed: verification-needed verification-needed-focal
Revision history for this message
jeremyszu (os369510) wrote :

Impish: 1:0.9.2.4~0.21.10.2

after upgrading:
available: 510.60.02-0ubuntu0.21.10.2 (auto-install)

tags: added: verification-done-impish
removed: verification-needed-impish
Changed in oem-priority:
status: Confirmed → Fix Committed
jeremyszu (os369510)
tags: added: originate-from-1969352 sutton
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-drivers-common - 1:0.9.2.4~0.21.10.2

---------------
ubuntu-drivers-common (1:0.9.2.4~0.21.10.2) impish; urgency=medium

  * UbuntuDrivers/detect.py:
    - Handle Production branches (PB) (LP: #1964747).
    - Always prefer PB and LTSB, and pick the highest of the two
      whenever possible.
  * tests/test_ubuntu_drivers.py:
    - Add test_system_driver_packages_chroot_support_branch_pb and
      test_system_driver_packages_chroot_support_branch_pb_1, to
      keep track of our policy on PB and LTSB releases.

 -- Alberto Milone <email address hidden> Wed, 16 Mar 2022 17:35:52 +0100

Changed in ubuntu-drivers-common (Ubuntu Impish):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) 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.9.0~0.20.04.7

---------------
ubuntu-drivers-common (1:0.9.0~0.20.04.7) focal; urgency=medium

  * UbuntuDrivers/detect.py:
    - Handle Production branches (PB) (LP: #1964747).
    - Always prefer PB and LTSB, and pick the highest of the two
      whenever possible.
  * tests/test_ubuntu_drivers.py:
    - Add test_system_driver_packages_chroot_support_branch_pb and
      test_system_driver_packages_chroot_support_branch_pb_1, to
      keep track of our policy on PB and LTSB releases.

 -- Alberto Milone <email address hidden> Wed, 16 Mar 2022 17:36:45 +0100

Changed in ubuntu-drivers-common (Ubuntu Focal):
status: Fix Committed → Fix Released
jeremyszu (os369510)
Changed in oem-priority:
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.