E: Unable to locate package cuda-toolkit-9-0

问题描述:tx2 在离线安装cuda时,报以下错误
bash cuda-l4t.sh cuda-repo-l4t-9-0-local_9.0.252-1_arm64.deb 9.0 9-0
[sudo] password for nvidia:
dpkg: error processing archive /home/nvidia/cuda-l4t/cuda-repo-l4t-9-0-local_9.0.252-1_arm64.deb (–install):
cannot access archive: No such file or directory
Errors were encountered while processing:
/home/nvidia/cuda-l4t/cuda-repo-l4t-9-0-local_9.0.252-1_arm64.deb
gpg: can’t open `/var/cuda-repo-9-0-local/*.pub’: No such file or directory
Hit:1 http://mirrors.ustc.edu.cn/ubuntu-ports xenial-updates InRelease
Hit:2 http://mirrors.ustc.edu.cn/ubuntu-ports xenial-security InRelease
Hit:3 http://mirrors.ustc.edu.cn/ubuntu-ports xenial-backports InRelease
Hit:4 http://mirrors.ustc.edu.cn/ubuntu-ports xenial InRelease
Reading package lists… Done
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package cuda-toolkit-9-0

分别执行以下命令即可解决

sudo dpkg -i cuda-repo-l4t-9-0-local_9.0.252-1_arm64.deb 

The public CUDA GPG key does not appear to be installed.
To install the key, run this command:
sudo apt-key add /var/cuda-repo-9-0-local/7fa2af80.pub

sudo apt-key add /var/cuda-repo-9-0-local/7fa2af80.pub
sudo apt update 
sudo apt install cuda-toolkit-9-0

你可能感兴趣的:(tx2,环境配置)