[Solved] Ubuntu 20.04.2 LTS installation error with CUDA direct repo

Hi,

I follow the documentation to install Cuda 11.3 on an up-to-date Ubuntu 20.04.2 Linux computer:

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/7fa2af80.pub
sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /"
sudo apt-get updatesudo apt-get -y install cuda

Everything is fine until last command.
I have the error : cuda : Depends on: cuda-11-3 (>= 11.3.1) but won’t be installed.

I checked the pre-requisites:

  • Verify the system has a CUDA-capable GPU.
    VGA compatible controller: NVIDIA Corporation GK208B [GeForce GT 730] (rev a1)
    And i installed this driver: nvidia-driver-460

  • Verify the system is running a supported version of Linux.
    x86_64
    DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=20.04
    DISTRIB_CODENAME=focal
    DISTRIB_DESCRIPTION=“Ubuntu 20.04.2 LTS

  • Verify the system has gcc installed.
    gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0strong text

  • Verify the system has the correct kernel headers and development packages installed.
    5.4.0-73-generic

Did i miss something ?

Hi @jacques.olivier.farcy

Did you installed the repository meta-data

sudo dpkg -i cuda-repo-<distro>_<version>_<architecture>.deb

Hi @mehmetdeniz ,

I can’t find any cuda-repo for Ubuntu 20.04 in:
https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/

I can see there is one for Ubuntu 18.04 :
https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-repo-ubuntu1804_10.2.89-1_amd64.deb

Doing this:

sudo apt-get install -y nvidia-kernel-source-460

juste before sudo apt-get -y install cuda, resolved the problem for me.

3 Likes