Hi,
I’m trying to install CUDA on Ubuntu 18.04, following this video : How To Install Tensorflow-GPU (1.8) on Ubuntu 18.04 - YouTube
This is not my first attempt. I’ve followed other guides without success.
When I run
sudo apt install nvidia-390
, this is what I get:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
cuda-drivers : Depends: nvidia-396 (>= 396.44) but it is not going to be installed
libcuda1-396 : Depends: nvidia-396 (>= 396.44) but it is not going to be installed
nvidia-390 : Depends: nvidia-driver-390 but it is not going to be installed
nvidia-396-dev : Depends: nvidia-396 (>= 396.44) but it is not going to be installed
nvidia-opencl-icd-396 : Depends: nvidia-396 (>= 396.44) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
When I run
sudo apt --fix-broken install
, this is what I get:
Preparing to unpack .../nvidia-396_396.44-0ubuntu1_amd64.deb ...
Unpacking nvidia-396 (396.44-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/nvidia-396_396.44-0ubuntu1_amd64.deb (--unpack):
trying to overwrite '/sbin/create-uvm-dev-node', which is also in package nvidia-kernel-common-390 390.48-0ubuntu3
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/nvidia-396_396.44-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I guess there’s an issue with nvidia-396 (which I’ve installed during a previous attempt). The command “nvidia-smi” never worked by the way. What should I do ? How can I remove the package nvidia-396 ? How can I fix it ?