ubuntu apt update 更新英伟达 gpg key

创建日期: 2024-06-19 14:21 | 作者: 风波 | 浏览次数: 13 | 分类: OS

来源:https://blog.csdn.net/CCCDeric/article/details/129225543

使用 nvidia 的 docker 镜像 nvcr.io/nvidia/tritonserver:21.11-py3 执行命令 apt update 的时候报错。

报错信息

W: GPG error: https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64 InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC E: The repository 'https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 InRelease' is not signed.

修复方法

apt-key del 7fa2af80
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu2004/x86_64/7fa2af80.pub

阿里云

https://unix.stackexchange.com/questions/198000/bypass-gpg-signature-checks-only-for-a-single-repository/198454#198454

遇到阿里云的源也不好用了,在 sources.list 里面加上 [trusted=yes] 就可以了。

例如

deb [trusted=yes] http://localmachine/debian wheezy main

或者

deb [ allow-insecure=yes ] ...
13 浏览
9 爬虫
0 评论