software-properties-qt does not load driver information
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-properties (Ubuntu) |
Fix Released
|
Critical
|
Unassigned | ||
Jammy |
Fix Released
|
Critical
|
Unassigned |
Bug Description
Driver information is not being loaded by software-
Traceback (most recent call last):
File "/usr/lib/
self.devices = detect.
File "/usr/lib/
for pkg, pkginfo in system_
File "/usr/lib/
for p in packages_
File "/usr/lib/
apt_cache_hash = hash(package.
AttributeError: 'Cache' object has no attribute 'packages'
Exception ignored in: <function DetectDriverThr
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: software-
ProcVersionSign
Uname: Linux 5.15.0-
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu79
Architecture: amd64
CasperMD5CheckR
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)
PackageArchitec
SourcePackage: software-properties
UpgradeStatus: Upgraded to jammy on 2021-11-07 (134 days ago)
Changed in software-properties (Ubuntu Jammy): | |
status: | Fix Committed → Fix Released |
Not an expert here, but the problem appears to be the import apt line 58 in SoftwarePropert iesQt.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 SoftwarePropert iesQt.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.