Installation issue of apt package 'nvidia-cuda-toolkit' from multiverse/devel

Yuki Furuta furushchev at
Sat Feb 4 00:13:17 UTC 2017

Hi all ubuntu developers,

I'm using Ubuntu 14.04.5 LTS for developing applications using CUDA for my
research and trying to release as debian package to `apt`.
My package depends on `nvidia-cuda-toolkit` which installs all cuda related
header files and libraries.
However, installing `nvidia-cuda-toolkit` sometimes requires legacy nvidia
display driver `nvidia-340` and instead removes all newer nvidia display
drivers, which causes crash on boot without display and keyboard response
on latest computers with video cards which is not supported by `nvidia-340`
any more.
The strange thing is that `nvidia-cuda-toolkit` sometimes does not remove
new nvidia drivers nor install legacy driver.
I further looked into more detail and found that what actually depends on
`nvidia-340` is `nvidia-opencl-dev`.
Below is dependencies of `nvidia-cuda-toolkit`:

nvidia-profiler (= 5.5.22-3ubuntu1), nvidia-cuda-dev (= 5.5.22-3ubuntu1),
nvidia-opencl-dev (=
        5.5.22-3ubuntu1) | opencl-dev, gcc, g++, libc6 (>= 2.3.4), libgcc1
(>= 1:4.1.1), libnvvm2 (>=
        5.5), libstdc++6 (>= 4.1.1)

it depends on `nvidia-opencl-dev` or `opencl-dev`.
And I found that `opencl-dev` is a virtual package of `nvidia-opencl-dev`
or `ocl-icd-opencl-dev`.
The latter situation where `nvidia-cuda-toolkit` can live with newer nvidia
display driver (e.g. `nvidia-367`) is the case when installing
`nviida-cuda-toolkit` after installing `ocl-icd-opencl-dev`.

After all, installing `nvidia-cuda-toolkit` without installing
`ocl-icd-opencl-dev` beforehand leads unexpected downgrade of display
drivers which causes crash on booting ubuntu on computers with latest
nvidia graphics card.

Is there any idea to fix this issue?
Thank you a lot in advance!

Yuki Furuta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Ubuntu-devel-discuss mailing list