Using "Software and Updates -> Additional Drivers" to Switch Fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-properties (Ubuntu) |
Fix Released
|
High
|
Alberto Milone | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned |
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.
Related branches
- Brian Murray: Approve
- Michael Vogt (community): Approve
-
Diff: 36 lines (+20/-0)1 file modifiedsoftwareproperties/gtk/SoftwarePropertiesGtk.py (+20/-0)
Changed in nvidia-graphics-drivers-390 (Ubuntu): | |
assignee: | nobody → Alberto Milone (albertomilone) |
importance: | Undecided → High |
status: | Confirmed → Triaged |
Changed in software-properties (Ubuntu): | |
status: | New → Triaged |
assignee: | nobody → Alberto Milone (albertomilone) |
importance: | Undecided → High |
Changed in software-properties (Ubuntu): | |
status: | Triaged → In Progress |
no longer affects: | nvidia-graphics-drivers-390 (Ubuntu) |
The rationale about why this is a probably an important bug to fix:
https:/ /bugs.launchpad .net/ubuntu/ +source/ nvidia- graphics- drivers- 390/+bug/ 1752739/ comments/ 5