ubuntu-core-launcher nvidia driver detection is bogus
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snap-confine |
Fix Released
|
Critical
|
Zygmunt Krynicki | ||
snap-confine (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
In Progress
|
Undecided
|
Unassigned |
Bug Description
[Impact]
Snap-confine contains special support code for Nvidia proprietary driver. This code used a rather naive approach to detect the driver, it was looking for directories matching /usr/lib/nvidia-*.
This worked fine as long as the number of found directories was either zero (nothing to do) or one (we know which driver to use). The problem arises when driver updates cause leftover (even empty) directories to match that glob pattern. Snap-confine would just bail out and abort.
Now snap-confine looks at /sys/modules/
Alberto Milone who maintains the nvidia proprietary driver packages in Ubuntu.
For more information about the execution environment, please see this article http://
[Test Case]
As a test case, install an nvidia proprietary driver package (any version will do) by using software-
If snap applications continue to work then everything is good. In the past snap-confine would print an error message and bail out.
This test has to be started on a machine that is using actual nvidia hardware and has the nvidia proprietary kernel module loaded.
[Regression Potential]
* Regression potential is minimal. The same behaviour is applied as before, just the driver detection code is less dumb and actually knows which driver is running by asking the kernel.
[Other Info]
* This bug is a part of a major SRU that brings snap-confine in Ubuntu 16.04 in line with the current upstream release 1.0.41.
* snap-confine is technically an integral part of snapd which has an SRU exception and is allowed to introduce new features and take advantage of accelerated procedure. For more information see https:/
== # Pre-SRU bug description follows # ==
older nvidia drivers used to leave dangling symlinks behind in their dirs in /usr/lib/
/usr/lib/
libnvidia-
/usr/lib/
libnvidia-fbc.so.1 libnvidia-wfb.so.1
/usr/lib/
libnvidia-fbc.so.1 libnvidia-wfb.so.1
ubuntu-
“multiple nvidia drivers detected, this is not supported”
error...
there is only the nvidia-361 driver installed on this machine but it was upgraded LTS->LTS and originally installed with 12.04.
instead of checking if there are multiple directories the check should instead look for something like /usr/lib/
i seem to not be alone http://
affects: | snappy → snap-confine |
Changed in snap-confine: | |
importance: | Undecided → High |
assignee: | nobody → Zygmunt Krynicki (zyga) |
status: | New → Triaged |
Changed in snap-confine: | |
importance: | High → Critical |
Changed in snap-confine: | |
milestone: | none → 1.0.41 |
Changed in snap-confine: | |
status: | Triaged → Fix Committed |
Changed in snap-confine: | |
status: | Fix Committed → Fix Released |
description: | updated |
Changed in snap-confine (Ubuntu): | |
status: | New → Fix Released |
Changed in snap-confine (Ubuntu Xenial): | |
status: | New → In Progress |
Thanks for your solution, was getting the same error.
This is indeed surprising that they are just checking the dirs for detecting multiple drivers.
I guess the latest update (2.12) triggered it. So we should expect more people to hit this bug.