在更新nvidia-docker 拉取的cuda-11.0 镜像中 的 容器中 ,执行apt update 命令 报出以下问题 :
root@6f3e3db63505:/etc/apt# apt update
Hit:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic InRelease
Hit:2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-updates InRelease
Hit:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-backports InRelease
Hit:4 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-security InRelease
Ign:5 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64 InRelease
Get:6 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64 Release [697 B]
Get:7 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64 Release.gpg [836 B]
Ign:8 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64 Packages
Ign:8 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64 Packages
Ign:8 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64 Packages
Err:8 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64 Packages
404 Not Found [IP: 180.101.196.129 443]
Fetched 1533 B in 18s (84 B/s)
Reading package lists... Done
E: Failed to fetch https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64/by-hash/SHA256/60afcf24526893b1713a7ce2d773cabe942d80dd637ba44327e34e890118a730 404 Not Found [IP: 180.101.196.129 443]
E: Some index files failed to download. They have been ignored, or old ones used instead.
执行以命令
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub
sudo apt-key add 7fa2af80.pub
此处错误即可跳过