[Bug 1965811] Re: software-properties-qt does not load driver information
Darin Miller
1965811 at bugs.launchpad.net
Tue Mar 22 04:24:23 UTC 2022
Not an expert here, but the problem appears to be the import apt line 58
in SoftwarePropertiesQt.py.
apt.Cache() lacks the packages attribute.
Replacing apt with apt_pkg (as seen in the detect.py package and to
which the apt_cache is passed) should fix the problem.
apt is only called twice in SoftwarePropertiesQt.py and both times, it
is used (incorrectly) as follows:
self.apt_cache = apt.Cache()
If this is the correct approach to fix this issue, I will attempt to
submit a patch.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to software-properties in Ubuntu.
https://bugs.launchpad.net/bugs/1965811
Title:
software-properties-qt does not load driver information
Status in software-properties package in Ubuntu:
New
Status in software-properties source package in Jammy:
New
Bug description:
Driver information is not being loaded by software-properties-qt. This
appears to be a python issue, perhaps a python 3.10 compatibility
issue.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/softwareproperties/qt/SoftwarePropertiesQt.py", line 1024, in detect_drivers
self.devices = detect.system_device_drivers(self.apt_cache)
File "/usr/lib/python3/dist-packages/UbuntuDrivers/detect.py", line 752, in system_device_drivers
for pkg, pkginfo in system_driver_packages(apt_cache, sys_path,
File "/usr/lib/python3/dist-packages/UbuntuDrivers/detect.py", line 448, in system_driver_packages
for p in packages_for_modalias(apt_cache, alias):
File "/usr/lib/python3/dist-packages/UbuntuDrivers/detect.py", line 200, in packages_for_modalias
apt_cache_hash = hash(package.get_fullname() for package in apt_cache.packages)
AttributeError: 'Cache' object has no attribute 'packages'
Exception ignored in: <function DetectDriverThread.__del__ at 0x7f9aaf4371c0>
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: software-properties-qt 0.99.19
ProcVersionSignature: Ubuntu 5.15.0-22.22-lowlatency 5.15.19
Uname: Linux 5.15.0-22-lowlatency x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu79
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: KDE
Date: Mon Mar 21 11:34:54 2022
InstallationDate: Installed on 2021-03-20 (365 days ago)
InstallationMedia: Ubuntu-Studio 21.04 "Hirsute Hippo" - Alpha amd64 (20210320)
PackageArchitecture: all
SourcePackage: software-properties
UpgradeStatus: Upgraded to jammy on 2021-11-07 (134 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1965811/+subscriptions
More information about the foundations-bugs
mailing list