[Bug 1753333] Re: Using "Software and Updates -> Additional Drivers" to Switch Fails
Launchpad Bug Tracker
1753333 at bugs.launchpad.net
Thu May 17 19:32:02 UTC 2018
This bug was fixed in the package software-properties - 0.96.24.32.2
---------------
software-properties (0.96.24.32.2) bionic; urgency=medium
* SoftwarePropertiesGtk.py: uninstall the actual nvidia packages,
not only the meta-package (LP: #1753333).
-- Alberto Milone <alberto.milone at canonical.com> Wed, 02 May 2018
15:58:01 +0200
** Changed in: software-properties (Ubuntu Bionic)
Status: Fix Committed => Fix Released
--
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/1753333
Title:
Using "Software and Updates -> Additional Drivers" to Switch Fails
Status in software-properties package in Ubuntu:
Fix Released
Status in software-properties source package in Bionic:
Fix Released
Bug description:
SRU Request:
[Impact]
Currently, the Additional Drivers tool uninstalls only the driver package that ships the modaliases. When it comes to the NVIDIA drivers (>=390), that package is only a meta-package. Removing the meta-package will not uninstall the driver.
We should make sure to uninstall all its nvidia related dependencies,
not only the meta-package.
[Test Case]
1) Open the "Software & Updates" app, and select the "Additional Drivers" tab
2) Uninstall the NVIDIA 390 driver
3) Check that, for example, the nvidia-dkms-390 package was
uninstalled:
apt-cache policy nvidia-dkms-390
The package will be reported as installed, because the current code
didn't remove it.
[Regression Potential]
Relatively low, as the change in behaviour only affects the nvidia driver, and it only causes the Additional Drivers tool to remove dependencies of the meta-package that have the "nvidia" string in their name.
__________________
When you are in the initial install state, you can easily switch from the Nouvea drivers to the Nvidia drivers by choosing the option in "Software and Updates -> Additional Drivers". However, when you attempt to switch back (by selecting the nouveau option and clicking Apply), and subsequently reboot, your system will still come up using the Nvidia drivers, and you will WTF.
And then, if you visit Additional Drivers, you will be presented with
grayed out options for both nvidia and nouvea, and the only selectable
option will be "continue using manually installed driver".
The reason for this is that the tool, when reselecting nvidia in the
GUI, uninstalls the nvidia-drivers-390 package, but because it's a
metapackage (or at least I presume this is the reason), it doesn't
uninstall its dependencies, which causes the Additional Drivers tool
to believe it's in a non-automanaged state, and the nvidia drivers
never actually get uninstalled.
You can fix it by doing an apt autoremove and rerunning the Additional
Drivers tool. But obviously there is no real way for inexperienced
users to know this.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1753333/+subscriptions
More information about the foundations-bugs
mailing list