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]
```

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to software-properties in
Ubuntu.
https://bugs.launchpad.net/bugs/2003576

Title:
  grayed buttons in Additional Drivers

Status in software-properties package in Ubuntu:
  Confirmed

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]

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/2003576/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to