grayed buttons in Additional Drivers

Bug #2003576 reported by Kristoffer Sokolowski
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
software-properties (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Not possible to install nvidia drivers using "Software Sources"->"Additional Drivers".

When selecting driver using radio-box the following excetpion occurs.

nvidia-driver-525-server <class 'str'>
None <class 'NoneType'>
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/softwareproperties/qt/SoftwarePropertiesQt.py", line 1067, in on_driver_selection_changed
    modules_package_obj = self.apt_cache[modules_package]
TypeError: Expected a string or a pair of strings

Because the follwing row returns "None"

modules_package = detect.get_linux_modules_metapackage(self.apt_cache, pkg_name)

Current version:
$ apt list --installed | grep software

python3-software-properties/jammy-updates,jammy-updates,now 0.99.22.4 all [installerat,automatiskt]
software-properties-common/jammy-updates,jammy-updates,now 0.99.22.4 all [installerat,automatiskt]
software-properties-qt/jammy-updates,jammy-updates,now 0.99.22.4 all [installerat,automatiskt]

description: updated
Changed in software-properties (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in software-properties (Ubuntu):
status: New → Confirmed
Revision history for this message
Thomas Queste (tomsquest) wrote :

Occuring also with version 0.99.27 upon selection of an entry.

```
$ sudo software-properties-qt
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/softwareproperties/qt/SoftwarePropertiesQt.py", line 1063, in on_driver_selection_changed
    modules_package_obj = self.apt_cache[modules_package]
TypeError: Expected a string or a pair of strings
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/softwareproperties/qt/SoftwarePropertiesQt.py", line 1059, in on_driver_selection_changed
    pkg = self.apt_cache[pkg_name]
TypeError: Expected a string or a pair of strings

```

```
$ apt list --installed | grep software

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

python3-software-properties/kinetic,kinetic,now 0.99.27 all [installed,automatic]
software-properties-common/kinetic,kinetic,now 0.99.27 all [installed,automatic]
software-properties-qt/kinetic,kinetic,now 0.99.27 all [installed,automatic]
```

Revision history for this message
Thomas Queste (tomsquest) wrote :
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.