Upstream MP: https://github.com/canonical/ubuntu-drivers-common/pull/138
Build test: 
https://launchpad.net/~mitchellaugustin/+archive/ubuntu/udc-resolver-bug-9-15-25/+packages

Tested that `sudo ubuntu-drivers install` and `sudo ubuntu-drivers install 
--gpgpu` install valid solutions on:
- Lenovo SR670v2 w/ 8x Nvidia L40 GPUs (Noble)
- DGX2 (Jammy)
- Lenovo ThinkSystem SE350 (1U2N) (Plucky)
- Local Plucky container, with underlying Noble system with an Nvidia DGX 960

Also confirmed that all tests pass in build test (linked above)

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to ubuntu-drivers-common in Ubuntu.
https://bugs.launchpad.net/bugs/2125156

Title:
  ubuntu-drivers recommends conflicting nvidia packages in some
  circumstances

Status in ubuntu-drivers-common package in Ubuntu:
  In Progress
Status in ubuntu-drivers-common source package in Jammy:
  New
Status in ubuntu-drivers-common source package in Noble:
  New
Status in ubuntu-drivers-common source package in Plucky:
  New
Status in ubuntu-drivers-common source package in Questing:
  In Progress

Bug description:
  SRU Justification:

  [ Impact ]

  Attempting to run `sudo ubuntu-drivers install` or `sudo ubuntu-
  drivers install --gpgpu` on some machines that support multiple Nvidia
  driver version branches can sometimes result in the generated `apt
  install` command including multiple conflicting packages, which causes
  the installation to be stopped.

  [ Test Plan ]

  1. On a device with an impacted Nvidia GPU and an impacted Ubuntu
  version, run `sudo ubuntu-drivers install`

  [ Expected Behavior ]

  A working Nvidia driver solution is installed

  [ Actual Behavior ]

  The `apt install` command does not complete successfully due to an
  invalid set of packages being requested for install

  [ Fix ]

  Before passing the to_install package list to `apt install`, filter
  out all but the first packages matching `nvidia-driver-*` since only
  one such package should be allowed in a valid solution.

  [ Where problems could occur ]

  If the Nvidia driver packaging in the archives is ever updated in the
  future to allow for multiple valid packages with this glob pattern,
  this filtering mechanism would potentially prevent such solutions from
  being recommended.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-drivers-common/+bug/2125156/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to