2021-05-15 apt update 更新问题

在尝试更新CUDA-11.0的Docker镜像时,遇到`apt update`命令失败的问题。具体表现为从NVIDIA开发者镜像源下载CUDA包时返回404错误。尝试通过wget手动添加公钥并使用`apt-key add`命令后,问题依然存在。这可能是由于镜像源URL失效或配置不正确导致。
摘要由CSDN通过智能技术生成

在更新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

 此处错误即可跳过

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值