This bug was fixed in the package ubuntu-drivers-common -
1:0.9.6.2~0.22.04.3

---------------
ubuntu-drivers-common (1:0.9.6.2~0.22.04.3) jammy; urgency=medium

  * UbuntuDrivers/detect.py:
    - Fix "882:5 local variable 'with_nvidia_kms' is assigned to
      but never used" FTBFS (triggered by tests/test_static.py).

ubuntu-drivers-common (1:0.9.6.2~0.22.04.2) jammy; urgency=medium

  [ Alberto Milone ]
  * debian/rules:
    - Limit the tests to the selected architectures (amd64, arm64).
      This prevents armhf builds from failing.
  * UbuntuDrivers/detect.py:
    - Make sure all -open drivers have a lower priority, regardless
      of whether the --server parameter is passed in or not.
    - Update regex and unify package name parsing in the following
      functions by using the new NvidiaPkgNameInfo class:
      nvidia_desktop_pre_installation_hook,
      _get_headless_no_dkms_metapackage,
      nvidia_desktop_pre_installation_hook,
      get_linux_modules_metapackage,
      This prevents ubuntu-drivers from crashing when dealing with
      the -open NVIDIA drivers (LP: #1993019).
  * tests/test_ubuntu_drivers.py:
    - Add tests so we make sure to keep preferring non-open NVIDIA
      modules over the -open ones, at least until the open modules catch up
      feature wise and performance wise.

  [ gongzhengyang ]
  * UbuntuDrivers/detect.py:
    - Fix local variable 'version' being referenced before assignment
      when catching ValueError (LP: #1993019).

  [ Jeff Lane ]
  * detect-plugins/sl-modem.py:
    - Add some error trapping when aplay is not installed (on servers)
      (LP: #1935070).

 -- Alberto Milone <[email protected]>  Wed, 08 Mar 2023
16:03:28 +0000

** Changed in: ubuntu-drivers-common (Ubuntu Jammy)
       Status: Fix Committed => Fix Released

-- 
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/1935070

Title:
  Traceback during 'ubuntu-drivers list'

Status in Ubuntu Drivers Common:
  New
Status in ubuntu-drivers-common package in Ubuntu:
  Fix Released
Status in ubuntu-drivers-common source package in Jammy:
  Fix Released
Status in ubuntu-drivers-common source package in Kinetic:
  Fix Released

Bug description:
  [ Impact ]

   * Calling the ubuntu-drivers tool where the alsa-utils package is not
  installed (mainly on servers), ubuntu-drivers (through the sl-modem
  plugin) complains, unnecessarily about the missing aplay binary.

  [ Test Plan ]

   * Install the new ubuntu-drivers-common from -proposed, and make sure
  that alsa-utils is not installed.

   * Run the ubuntu-drivers list command.

   * Check that ubuntu-drivers does not complain about the missing aplay
  tool.

  [ Where problems could occur ]

   * A problem in the ubuntu-drivers tool can cause it to install a driver which
     is not recommended for the detected hardware, or even cause the package
     installation to fail, and prevent users from logging in through the
     graphics interface.

  [ Other Info ]
  -
  _______________
  ubuntu@doubletusk:~$ sudo ubuntu-drivers list
  ERROR:root:could not open aplay -l
  Traceback (most recent call last):
    File "/usr/share/ubuntu-drivers-common/detect/sl-modem.py", line 35, in 
detect
      aplay = subprocess.Popen(
    File "/usr/lib/python3.8/subprocess.py", line 858, in __init__
      self._execute_child(args, executable, preexec_fn, close_fds,
    File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child
      raise child_exception_type(errno_num, err_msg, err_filename)
  FileNotFoundError: [Errno 2] No such file or directory: 'aplay'
  nvidia-driver-418-server, (kernel modules provided by nvidia-dkms-418-server)
  nvidia-driver-470, (kernel modules provided by nvidia-dkms-470)
  nvidia-driver-460-server, (kernel modules provided by nvidia-dkms-460-server)
  nvidia-driver-465, (kernel modules provided by nvidia-dkms-465)
  nvidia-driver-450-server, (kernel modules provided by nvidia-dkms-450-server)
  nvidia-driver-460, (kernel modules provided by nvidia-dkms-460)
  ubuntu@doubletusk:~$ apt-cache policy ubuntu-drivers-common
  ubuntu-drivers-common:
    Installed: 1:0.9.0~0.20.04.1
    Candidate: 1:0.9.0~0.20.04.1
    Version table:
   *** 1:0.9.0~0.20.04.1 500
          500 http://archive.ubuntu.com/ubuntu focal-proposed/main amd64 
Packages
          100 /var/lib/dpkg/status
       1:0.8.6.5~0.20.04.1 500
          500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 
Packages
       1:0.8.1 500
          500 http://us.archive.ubuntu.com/ubuntu focal/main amd64 Packages
  ubuntu@doubletusk:~$ lsb_release -a
  No LSB modules are available.
  Distributor ID: Ubuntu
  Description:    Ubuntu 20.04.2 LTS
  Release:        20.04
  Codename:       focal

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-drivers-common/+bug/1935070/+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