GNU/Linux >> Tutoriels Linux >  >> Ubuntu

Installation de Cuda 8 sur Ubuntu 16 :impossible de localiser le package Cuda ?

En suivant les instructions officielles d'ici :https://developer.nvidia.com/cuda-80-ga2-download-archive.

[email protected]:~/temp$ ll
total 1.8G
-rw-r--r-- 1 root 1.8G Feb  1  2017 cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb

[email protected]:~/temp$ sudo dpkg -i cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb
(Reading database ... 92745 files and directories currently installed.)
Preparing to unpack cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb ...
Unpacking cuda-repo-ubuntu1604-8-0-local-ga2 (8.0.61-1) over (8.0.61-1) ...
Setting up cuda-repo-ubuntu1604-8-0-local-ga2 (8.0.61-1) ...
OK

[email protected]:~/temp$ sudo apt-get update
Hit:1 http://archive.canonical.com/ubuntu xenial InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Get:3 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Hit:4 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:5 http://archive.ubuntu.com/ubuntu xenial InRelease
Hit:6 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Get:7 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Hit:8 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:9 http://archive.ubuntu.com/ubuntu xenial-security InRelease
Fetched 204 kB in 0s (267 kB/s)
Reading package lists... Done

[email protected]:~/temp$ sudo apt-get install cuda
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package cuda

J'ai essayé de copier manuellement le fichier .deb dans /var/cuda-repo-8-0-local-ga2 mais j'ai eu la même erreur.

Ce fichier .deb de 1,8 Go que j'ai téléchargé se trouve juste là, pourquoi ne peut-il pas le voir ? CUDA n'est pas installé :sudo apt-get remove --purge nvidia-* affiche "0 à supprimer"

Rien de Nvidia n'a été installé :

$ nvcc -V
The program 'nvcc' is currently not installed. You can install it by typing:
sudo apt install nvidia-cuda-toolkit` and `nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

L'étape qui installe réellement CUDA est sudo apt-get install cuda , et cela n'a pas abouti, comme vous pouvez le voir dans mon post.

$ dpkg-query -s cuda
dpkg-query: package 'cuda' is not installed and no information is available

Réponse acceptée :

J'ai rencontré ce problème en essayant d'installer CUDA 9.0 sur Ubuntu 17.10, et je l'ai résolu en décommentant la ligne suivante dans mon /etc/apt/sources.list.d/cuda-9-0-local.list

# deb file:///var/cuda-repo-9-0-local / # disabled on upgrade to artful

=>

deb file:///var/cuda-repo-9-0-local /

Ubuntu
  1. Comment installer CUDA sur Ubuntu 18.04

  2. Installation de VirtualBox 4.2 sur Ubuntu 12.10

  3. Installez PHP 7 sur un nouveau VPS Ubuntu :[Fix] Impossible de localiser le package PHP

  4. Impossible d'installer Mariadb sur Ubuntu 20.04 ?

  5. Installation de Lua5.2 Vs. Lua5.3 sur Ubuntu 16.10 ?

Comment installer CUDA sur Ubuntu 20.04

Comment réparer l'erreur "Impossible de localiser le paquet" dans les distributions Ubuntu ou Debian - (6 solutions en 2022}

Comment installer KDE Plasma 5.16 sur Ubuntu 16.04/Ubuntu 18.04, 19.04

2 façons d'installer Android Studio dans Ubuntu 20.04/Ubuntu 18.04

Dépannage de l'erreur "E :Impossible de localiser le package" sur Ubuntu [Tutoriel du débutant]

Installer KDE sur Ubuntu 22.04