I'm trying to install CUDA and NVIDIA drivers to use a GeForce 1080 and a Titan XP GPU on my workstation.
However, running:
sudo apt-get install nvidia-driver-440
I got the following error, which I don't know how to solve:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible
situation or if you are using the unstable distribution that some
required packages have not yet been created or been moved out of
Incoming. The following information may help to resolve the
situation:
The following packages have unmet dependencies:
nvidia-driver-440 : Depends: libnvidia-gl-440 (=
440.59-0ubuntu0.18.04.1) but
440.64.00-0ubuntu1 is to be installed
Depends: libnvidia-compute-440 (= 440.59-0ubuntu0.18.04.1) but 440.64.00-0ubuntu1 is to be installed
Depends: libnvidia-decode-440 (= 440.59-0ubuntu0.18.04.1) but it is not going to be installed
Depends: libnvidia-encode-440 (= 440.59-0ubuntu0.18.04.1) but it is not going to be installed
Depends: libnvidia-fbc1-440 (= 440.59-0ubuntu0.18.04.1) but 440.82-0ubuntu0~0.18.04.2 is to be installed
Recommends: nvidia-settings but it is not going to be installed
Recommends: nvidia-prime (= 0.8) but it is not going to be installed
Recommends: libnvidia-compute-440:i386 (= 440.59-0ubuntu0.18.04.1) but it is not installable
Recommends: libnvidia-decode-440:i386 (= 440.59-0ubuntu0.18.04.1) but it is not installable
Recommends: libnvidia-encode-440:i386 (= 440.59-0ubuntu0.18.04.1) but it is not installable
Recommends: libnvidia-ifr1-440:i386 (= 440.59-0ubuntu0.18.04.1) but it is not installable
Recommends: libnvidia-fbc1-440:i386 (= 440.59-0ubuntu0.18.04.1) but it is not installable
Recommends: libnvidia-gl-440:i386 (= 440.59-0ubuntu0.18.04.1) but it is not installable
E: Unable to correct problems, you have held broken packages.
Info on my OS (output of lsb_release -a
):
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
Any help? :)
sudo apt-get --fix-missing install
which allowed me to install the drivers. However something must be off: after reboot, I still cannot run "nvidia-smi", with the following error message: NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running. – gab Jun 11 '20 at 08:18lsmod | grep nvidia
? – Parsa Mousavi Jun 11 '20 at 08:20sudo aptitude install nvidia-driver-430
the report says nvidia-driver-430 is already installed at the requested version (440.59-0ubuntu0.18.04.1). However, I still cannot see the GPUs; e.g. I cannot usenvidia-smi
(even after rebooting). – gab Jun 11 '20 at 10:28