dpkg: error processing archive /var/cache/apt/archives/nvidia-cuda-dev_9.1.85-3ubuntu1_amd64.deb (--unpack):
trying to overwrite '/usr/include/cublas.h', which is also in package libcublas-dev 10.2.0.168-1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/nvidia-cuda-dev_9.1.85-3ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I am using Ubuntu 18.04.2 LTS and installed the CUDA toolkit using the deb network installer. I’m guessing I did something stupid, as I’m not very experienced with linux, but I’m hopelessly confused and Google isn’t helping.
You appear to be mixing CUDA 9.1 and 10.1 install. The reference to /usr/include/cublas.h is coming from a 10.1 install. But the package you have indicated:
Remove the 10.1 install using the proper 10.1 install method. If you have a hopelessly confused mix of various install and uninstall attempts it may not be possible to give a straightforward set of steps to unwind whatever you have done. A simple set of instructions to fix things might be to reload the operating system.
Thanks! I reinstalled Ubuntu and eventually got it working. My issue seems to have been that I set up my environment using the wrong tool version. The installation guide says to type