Comment 8 for bug 1247736

Revision history for this message
Graham Inggs (ginggs) wrote : Re: package ocl-icd-libopencl1 (not installed) failed to install/upgrade: trying to overwrite '/usr/lib/x86_64-linux-gnu/libOpenCL.so', which is also in package nvidia-opencl-dev:amd64 5.0.35-7ubuntu1

While ocl-icd-libopencl1 and nvidia-opencl-dev are shipping the same binary file '/usr/lib/*/libOpenCL.so', it doesn't seem to cause a problem in Debian. In Ubuntu, we have the same ocl-icd and nvidia-cuda-toolkit packages as in Debian, however our nvidia-graphics-drivers* packages are packaged differently.

In Ubuntu, nvidia-opencl-icd-331 has the following package relationships:
Depends: libc6 (>= 2.2.5), zlib1g (>= 1:1.1.4)
Suggests: nvidia-libopencl1-331
Conflicts: opencl-icd
Replaces: opencl-icd
Provides: opencl-icd

In Debian, the equivalent nvidia-opencl-icd has the following:
Depends: nvidia-opencl-common (= 331.67-1), ocl-icd-libopencl1 | nvidia-libopencl1 | libopencl1, libnvidia-compiler (= 331.67-1), libc6 (>= 2.2.5), zlib1g (>= 1:1.1.4)
Enhances: libopencl1
Conflicts: nvidia-opencl-icd-ia32
Replaces: nvidia-opencl-icd-ia32
Provides: opencl-icd

I believe the conflicts/replaces on opencl-icd in nvidia-opencl-icd-331 are causing this problem when trying to co-install nvidia-cuda-toolkit and wine (LP: #1310267) and preventing the co-installation of python-pycuda and python-pyopencl (LP: #1312422).