I installed cuda with a command
sudo apt install nvidia-cuda-toolkit
, which isntalled cuda 7.5. I tried to uninstall it, download newer CUDA 10.1 from official websites and installed it. It throws this error. Obviously the old and new versions of cuda are fighting but I was unable to uninstall them completely, still getting similar errors:
Reading package lists... Done Building dependency tree Reading state information... Done cuda is already the newest version (10.1.168-1). You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: cuda-libraries-dev-10-1 : Depends: libcublas-dev (>= 10.2.0.168) but it is not going to be installed cuda-samples-10-1 : Depends: libcublas-dev (>= 10.2.0.168) but it is not going to be installed cuda-visual-tools-10-1 : Depends: libcublas-dev (>= 10.2.0.168) but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
I tried several ways of removing the libraries, all failed… Any help would be highly appreciated.
sudo apt remove libcublas* cuda* libnvblas* nvidia-cuda*