[Touch-packages] [Bug 1872551] Re: software-properties-qt: nvidia driver version switch fails
This bug was fixed in the package software-properties - 0.98.9 --- software-properties (0.98.9) focal; urgency=medium * softwareproperties/gtk/SoftwarePropertiesGtk.py: - Gtk is doing something that takes a lock while processing checkbox toggled events, the polkit auth dialog can't be displayed in return, we don't have a proper fix and it might require GTK changes, meanwhile we want a working interface so workaround with a sleep (lp: #1727908) -- Sebastien Bacher Thu, 16 Apr 2020 11:57:50 +0200 ** Changed in: software-properties (Ubuntu) Status: Fix Committed => Fix Released -- 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/1872551 Title: software-properties-qt: nvidia driver version switch fails Status in software-properties package in Ubuntu: Fix Released Bug description: Switching the Nvidia driver version with kubuntu-driver-manager doesn't work anymore: Selecting a different driver version (nvidia- driver-440 instead of the currently selected / installed -390) and clicking "Apply Changes" has no effect and produces this error message in the terminal: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/softwareproperties/qt/SoftwarePropertiesQt.py", line 895, in on_driver_changes_apply for dep in get_dependencies(self.apt_cache, pkg.shortname, 'nvidia'): NameError: name 'get_dependencies' is not defined Steps to reproduce: - sudo kubuntu-driver-manager - Under "Additional Drivers", select a different Nvidia driver version (in my case: 440 instead of 390) - Click "Apply Changes" - (observe error message in the terminal) Expected result: - No error message - Nvidia driver version 440 gets installed Actual result: - Error message - No change in the installed Nvidia driver version ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: kubuntu-driver-manager (not installed) ProcVersionSignature: Ubuntu 5.4.0-21.25-generic 5.4.27 Uname: Linux 5.4.0-21-generic x86_64 ApportVersion: 2.20.11-0ubuntu26 Architecture: amd64 CasperMD5CheckResult: skip CurrentDesktop: KDE Date: Mon Apr 13 23:41:56 2020 InstallationDate: Installed on 2016-11-26 (1234 days ago) InstallationMedia: Kubuntu 16.10 "Yakkety Yak" - Release amd64 (20161012.1) SourcePackage: kubuntu-driver-manager UpgradeStatus: Upgraded to focal on 2020-03-06 (38 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1872551/+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
[Touch-packages] [Bug 1872551] Re: software-properties-qt: nvidia driver version switch fails
A fix for this has been uploaded. It is currently stuck in proposed pocket due to an unrelated test failure of a reverse dependency, but I anticipate that being sorted before 20.04 release. -- 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/1872551 Title: software-properties-qt: nvidia driver version switch fails Status in software-properties package in Ubuntu: Fix Committed Bug description: Switching the Nvidia driver version with kubuntu-driver-manager doesn't work anymore: Selecting a different driver version (nvidia- driver-440 instead of the currently selected / installed -390) and clicking "Apply Changes" has no effect and produces this error message in the terminal: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/softwareproperties/qt/SoftwarePropertiesQt.py", line 895, in on_driver_changes_apply for dep in get_dependencies(self.apt_cache, pkg.shortname, 'nvidia'): NameError: name 'get_dependencies' is not defined Steps to reproduce: - sudo kubuntu-driver-manager - Under "Additional Drivers", select a different Nvidia driver version (in my case: 440 instead of 390) - Click "Apply Changes" - (observe error message in the terminal) Expected result: - No error message - Nvidia driver version 440 gets installed Actual result: - Error message - No change in the installed Nvidia driver version ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: kubuntu-driver-manager (not installed) ProcVersionSignature: Ubuntu 5.4.0-21.25-generic 5.4.27 Uname: Linux 5.4.0-21-generic x86_64 ApportVersion: 2.20.11-0ubuntu26 Architecture: amd64 CasperMD5CheckResult: skip CurrentDesktop: KDE Date: Mon Apr 13 23:41:56 2020 InstallationDate: Installed on 2016-11-26 (1234 days ago) InstallationMedia: Kubuntu 16.10 "Yakkety Yak" - Release amd64 (20161012.1) SourcePackage: kubuntu-driver-manager UpgradeStatus: Upgraded to focal on 2020-03-06 (38 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1872551/+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
[Touch-packages] [Bug 1872551] Re: software-properties-qt: nvidia driver version switch fails
** Changed in: software-properties (Ubuntu) Importance: Undecided => High -- 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/1872551 Title: software-properties-qt: nvidia driver version switch fails Status in software-properties package in Ubuntu: Fix Committed Bug description: Switching the Nvidia driver version with kubuntu-driver-manager doesn't work anymore: Selecting a different driver version (nvidia- driver-440 instead of the currently selected / installed -390) and clicking "Apply Changes" has no effect and produces this error message in the terminal: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/softwareproperties/qt/SoftwarePropertiesQt.py", line 895, in on_driver_changes_apply for dep in get_dependencies(self.apt_cache, pkg.shortname, 'nvidia'): NameError: name 'get_dependencies' is not defined Steps to reproduce: - sudo kubuntu-driver-manager - Under "Additional Drivers", select a different Nvidia driver version (in my case: 440 instead of 390) - Click "Apply Changes" - (observe error message in the terminal) Expected result: - No error message - Nvidia driver version 440 gets installed Actual result: - Error message - No change in the installed Nvidia driver version ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: kubuntu-driver-manager (not installed) ProcVersionSignature: Ubuntu 5.4.0-21.25-generic 5.4.27 Uname: Linux 5.4.0-21-generic x86_64 ApportVersion: 2.20.11-0ubuntu26 Architecture: amd64 CasperMD5CheckResult: skip CurrentDesktop: KDE Date: Mon Apr 13 23:41:56 2020 InstallationDate: Installed on 2016-11-26 (1234 days ago) InstallationMedia: Kubuntu 16.10 "Yakkety Yak" - Release amd64 (20161012.1) SourcePackage: kubuntu-driver-manager UpgradeStatus: Upgraded to focal on 2020-03-06 (38 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1872551/+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
[Touch-packages] [Bug 1872551] Re: software-properties-qt: nvidia driver version switch fails
** Changed in: software-properties (Ubuntu) Status: Confirmed => Fix Committed -- 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/1872551 Title: software-properties-qt: nvidia driver version switch fails Status in software-properties package in Ubuntu: Fix Committed Bug description: Switching the Nvidia driver version with kubuntu-driver-manager doesn't work anymore: Selecting a different driver version (nvidia- driver-440 instead of the currently selected / installed -390) and clicking "Apply Changes" has no effect and produces this error message in the terminal: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/softwareproperties/qt/SoftwarePropertiesQt.py", line 895, in on_driver_changes_apply for dep in get_dependencies(self.apt_cache, pkg.shortname, 'nvidia'): NameError: name 'get_dependencies' is not defined Steps to reproduce: - sudo kubuntu-driver-manager - Under "Additional Drivers", select a different Nvidia driver version (in my case: 440 instead of 390) - Click "Apply Changes" - (observe error message in the terminal) Expected result: - No error message - Nvidia driver version 440 gets installed Actual result: - Error message - No change in the installed Nvidia driver version ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: kubuntu-driver-manager (not installed) ProcVersionSignature: Ubuntu 5.4.0-21.25-generic 5.4.27 Uname: Linux 5.4.0-21-generic x86_64 ApportVersion: 2.20.11-0ubuntu26 Architecture: amd64 CasperMD5CheckResult: skip CurrentDesktop: KDE Date: Mon Apr 13 23:41:56 2020 InstallationDate: Installed on 2016-11-26 (1234 days ago) InstallationMedia: Kubuntu 16.10 "Yakkety Yak" - Release amd64 (20161012.1) SourcePackage: kubuntu-driver-manager UpgradeStatus: Upgraded to focal on 2020-03-06 (38 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1872551/+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
[Touch-packages] [Bug 1872551] Re: software-properties-qt: nvidia driver version switch fails
The patch in comment #9 solves the issue for me. -- 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/1872551 Title: software-properties-qt: nvidia driver version switch fails Status in software-properties package in Ubuntu: Confirmed Bug description: Switching the Nvidia driver version with kubuntu-driver-manager doesn't work anymore: Selecting a different driver version (nvidia- driver-440 instead of the currently selected / installed -390) and clicking "Apply Changes" has no effect and produces this error message in the terminal: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/softwareproperties/qt/SoftwarePropertiesQt.py", line 895, in on_driver_changes_apply for dep in get_dependencies(self.apt_cache, pkg.shortname, 'nvidia'): NameError: name 'get_dependencies' is not defined Steps to reproduce: - sudo kubuntu-driver-manager - Under "Additional Drivers", select a different Nvidia driver version (in my case: 440 instead of 390) - Click "Apply Changes" - (observe error message in the terminal) Expected result: - No error message - Nvidia driver version 440 gets installed Actual result: - Error message - No change in the installed Nvidia driver version ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: kubuntu-driver-manager (not installed) ProcVersionSignature: Ubuntu 5.4.0-21.25-generic 5.4.27 Uname: Linux 5.4.0-21-generic x86_64 ApportVersion: 2.20.11-0ubuntu26 Architecture: amd64 CasperMD5CheckResult: skip CurrentDesktop: KDE Date: Mon Apr 13 23:41:56 2020 InstallationDate: Installed on 2016-11-26 (1234 days ago) InstallationMedia: Kubuntu 16.10 "Yakkety Yak" - Release amd64 (20161012.1) SourcePackage: kubuntu-driver-manager UpgradeStatus: Upgraded to focal on 2020-03-06 (38 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1872551/+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
[Touch-packages] [Bug 1872551] Re: software-properties-qt: nvidia driver version switch fails
could you test adding this to /lib/python3/dist- packages/softwareproperties/qt/SoftwarePropertiesQt.py SoftwarePropertiesQt.py ? For me testing with nvidia is not easy --- /lib/python3/dist-packages/softwareproperties/qt/SoftwarePropertiesQt.py 2020-04-14 09:16:19.370592334 -0400 +++ SoftwarePropertiesQt.py 2020-04-14 09:02:21.894527421 -0400 @@ -78,6 +78,17 @@ QWidget.__init__(self) uic.loadUi("%s/designer/main.ui" % datadir, self) +def get_dependencies(apt_cache, package_name, pattern=None): +""" Get the package dependencies, which can be filtered out by a pattern """ +dependencies = [] +for or_group in apt_cache[package_name].candidate.dependencies: +for dep in or_group: +if dep.rawtype in ["Depends", "PreDepends"]: +dependencies.append(dep.name) +if pattern: +dependencies = [ x for x in dependencies if x.find(pattern) != -1 ] +return dependencies + class SoftwarePropertiesQt(SoftwareProperties): def __init__(self, datadir=None, options=None, parent=None, file=None, attachWinID=None): """ Provide a Qt-based graphical user interface to configure -- 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/1872551 Title: software-properties-qt: nvidia driver version switch fails Status in software-properties package in Ubuntu: Confirmed Bug description: Switching the Nvidia driver version with kubuntu-driver-manager doesn't work anymore: Selecting a different driver version (nvidia- driver-440 instead of the currently selected / installed -390) and clicking "Apply Changes" has no effect and produces this error message in the terminal: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/softwareproperties/qt/SoftwarePropertiesQt.py", line 895, in on_driver_changes_apply for dep in get_dependencies(self.apt_cache, pkg.shortname, 'nvidia'): NameError: name 'get_dependencies' is not defined Steps to reproduce: - sudo kubuntu-driver-manager - Under "Additional Drivers", select a different Nvidia driver version (in my case: 440 instead of 390) - Click "Apply Changes" - (observe error message in the terminal) Expected result: - No error message - Nvidia driver version 440 gets installed Actual result: - Error message - No change in the installed Nvidia driver version ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: kubuntu-driver-manager (not installed) ProcVersionSignature: Ubuntu 5.4.0-21.25-generic 5.4.27 Uname: Linux 5.4.0-21-generic x86_64 ApportVersion: 2.20.11-0ubuntu26 Architecture: amd64 CasperMD5CheckResult: skip CurrentDesktop: KDE Date: Mon Apr 13 23:41:56 2020 InstallationDate: Installed on 2016-11-26 (1234 days ago) InstallationMedia: Kubuntu 16.10 "Yakkety Yak" - Release amd64 (20161012.1) SourcePackage: kubuntu-driver-manager UpgradeStatus: Upgraded to focal on 2020-03-06 (38 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1872551/+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
[Touch-packages] [Bug 1872551] Re: software-properties-qt: nvidia driver version switch fails
$ grep -ir get_dependencies * softwareproperties/gtk/SoftwarePropertiesGtk.py:def get_dependencies(apt_cache, package_name, pattern=None): softwareproperties/gtk/SoftwarePropertiesGtk.py:for dep in get_dependencies(self.apt_cache, pkg.shortname, 'nvidia'): softwareproperties/qt/SoftwarePropertiesQt.py:for dep in get_dependencies(self.apt_cache, pkg.shortname, 'nvidia'): So looks like the porting of the driver page to software-properties-qt was incomplete compared to the -gtk one? -- 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/1872551 Title: software-properties-qt: nvidia driver version switch fails Status in software-properties package in Ubuntu: Confirmed Bug description: Switching the Nvidia driver version with kubuntu-driver-manager doesn't work anymore: Selecting a different driver version (nvidia- driver-440 instead of the currently selected / installed -390) and clicking "Apply Changes" has no effect and produces this error message in the terminal: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/softwareproperties/qt/SoftwarePropertiesQt.py", line 895, in on_driver_changes_apply for dep in get_dependencies(self.apt_cache, pkg.shortname, 'nvidia'): NameError: name 'get_dependencies' is not defined Steps to reproduce: - sudo kubuntu-driver-manager - Under "Additional Drivers", select a different Nvidia driver version (in my case: 440 instead of 390) - Click "Apply Changes" - (observe error message in the terminal) Expected result: - No error message - Nvidia driver version 440 gets installed Actual result: - Error message - No change in the installed Nvidia driver version ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: kubuntu-driver-manager (not installed) ProcVersionSignature: Ubuntu 5.4.0-21.25-generic 5.4.27 Uname: Linux 5.4.0-21-generic x86_64 ApportVersion: 2.20.11-0ubuntu26 Architecture: amd64 CasperMD5CheckResult: skip CurrentDesktop: KDE Date: Mon Apr 13 23:41:56 2020 InstallationDate: Installed on 2016-11-26 (1234 days ago) InstallationMedia: Kubuntu 16.10 "Yakkety Yak" - Release amd64 (20161012.1) SourcePackage: kubuntu-driver-manager UpgradeStatus: Upgraded to focal on 2020-03-06 (38 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1872551/+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
[Touch-packages] [Bug 1872551] Re: software-properties-qt: nvidia driver version switch fails
** Summary changed: - kubuntu-driver-manager: nvidia driver version switch fails + software-properties-qt: nvidia driver version switch fails -- 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/1872551 Title: software-properties-qt: nvidia driver version switch fails Status in software-properties package in Ubuntu: Confirmed Bug description: Switching the Nvidia driver version with kubuntu-driver-manager doesn't work anymore: Selecting a different driver version (nvidia- driver-440 instead of the currently selected / installed -390) and clicking "Apply Changes" has no effect and produces this error message in the terminal: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/softwareproperties/qt/SoftwarePropertiesQt.py", line 895, in on_driver_changes_apply for dep in get_dependencies(self.apt_cache, pkg.shortname, 'nvidia'): NameError: name 'get_dependencies' is not defined Steps to reproduce: - sudo kubuntu-driver-manager - Under "Additional Drivers", select a different Nvidia driver version (in my case: 440 instead of 390) - Click "Apply Changes" - (observe error message in the terminal) Expected result: - No error message - Nvidia driver version 440 gets installed Actual result: - Error message - No change in the installed Nvidia driver version ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: kubuntu-driver-manager (not installed) ProcVersionSignature: Ubuntu 5.4.0-21.25-generic 5.4.27 Uname: Linux 5.4.0-21-generic x86_64 ApportVersion: 2.20.11-0ubuntu26 Architecture: amd64 CasperMD5CheckResult: skip CurrentDesktop: KDE Date: Mon Apr 13 23:41:56 2020 InstallationDate: Installed on 2016-11-26 (1234 days ago) InstallationMedia: Kubuntu 16.10 "Yakkety Yak" - Release amd64 (20161012.1) SourcePackage: kubuntu-driver-manager UpgradeStatus: Upgraded to focal on 2020-03-06 (38 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1872551/+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
[Touch-packages] [Bug 1872551] Re: software-properties-qt: nvidia driver version switch fails
aptdaemon has been installed from the start. -- 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/1872551 Title: software-properties-qt: nvidia driver version switch fails Status in software-properties package in Ubuntu: Confirmed Bug description: Switching the Nvidia driver version with kubuntu-driver-manager doesn't work anymore: Selecting a different driver version (nvidia- driver-440 instead of the currently selected / installed -390) and clicking "Apply Changes" has no effect and produces this error message in the terminal: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/softwareproperties/qt/SoftwarePropertiesQt.py", line 895, in on_driver_changes_apply for dep in get_dependencies(self.apt_cache, pkg.shortname, 'nvidia'): NameError: name 'get_dependencies' is not defined Steps to reproduce: - sudo kubuntu-driver-manager - Under "Additional Drivers", select a different Nvidia driver version (in my case: 440 instead of 390) - Click "Apply Changes" - (observe error message in the terminal) Expected result: - No error message - Nvidia driver version 440 gets installed Actual result: - Error message - No change in the installed Nvidia driver version ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: kubuntu-driver-manager (not installed) ProcVersionSignature: Ubuntu 5.4.0-21.25-generic 5.4.27 Uname: Linux 5.4.0-21-generic x86_64 ApportVersion: 2.20.11-0ubuntu26 Architecture: amd64 CasperMD5CheckResult: skip CurrentDesktop: KDE Date: Mon Apr 13 23:41:56 2020 InstallationDate: Installed on 2016-11-26 (1234 days ago) InstallationMedia: Kubuntu 16.10 "Yakkety Yak" - Release amd64 (20161012.1) SourcePackage: kubuntu-driver-manager UpgradeStatus: Upgraded to focal on 2020-03-06 (38 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1872551/+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