Jetson orin unbuntu20.04 GPG error the public key is not available: NO_PUBKE

@[TOC]cuda报错 GPG error the public key is not available: NO_PUBKE

报错详情:
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/arm64 InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
W: Failed to fetch https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/arm64/InRelease The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
W: Some index files failed to download. They have been ignored, or old ones used instead.

网上找了很多方法,包括

sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key A4B469963BF863CC

也解决不了问题

最后在gpt4的帮助下,运行如下指令,重置了一些东西,错误成功解决:
前提是确保系统时间是正确的。
1.使用新的方法添加公钥,你可以使用 gpg 和 apt 的组合来添加所需的密钥:

sudo apt-key del A4B469963BF863CC
sudo rm /etc/apt/trusted.gpg.d/*_nvidia_*
sudo gpg --no-default-keyring --keyring /usr/share/keyrings/nvidia-archive-keyring.gpg --keyserver keyserver.ubuntu.com --recv-keys A4B469963BF863CC

2.然后,修改你的NVIDIA CUDA存储库文件,确保它指向新的密钥环:

echo "deb [signed-by=/usr/share/keyrings/nvidia-archive-keyring.gpg] https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/arm64/ /" | sudo tee /etc/apt/sources.list.d/cuda.list
```
3.更新你的软件包列表:
````bash
sudo apt update
```

这将应用你对存储库文件的更改,并在下次更新软件包列表时使用新的密钥环文件进行验证。如果仍然有问题,可能需要检查 CUDA 存储库的 URL 是否正确。

最后完美解决问题。
  • 13
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值