gpt4 book ai didi

linux - Azure Nvidia 中的 apt-update 出现公钥错误

转载 作者:行者123 更新时间:2023-12-04 18:24:33 25 4
gpt4 key购买 nike

我在 AZURE 上启动了 NVIDIA VM 并尝试使用进行更新sudo apt update但给出错误:

Hit:2 http://azure.archive.ubuntu.com/ubuntu focal InRelease                                                 
Hit:3 http://azure.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:4 http://azure.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:5 https://packages.microsoft.com/repos/azure-cli focal InRelease
Hit:6 http://security.ubuntu.com/ubuntu focal-security InRelease
Err:1 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
Reading package lists... Done
W: GPG error: http://developer.download.nvidia.com/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 'http://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 InRelease' is no longer signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

安装我使用的 key sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv A4B469963BF863CC

但这给出了“无数据”错误。 gpg: key 服务器接收失败:无数据

我可以运行sudo apt-get update,但不能运行更新。任何帮助将不胜感激

即使安装了cuda,但仍然找不到cuda库,这可能是由于更新所致。

最佳答案

以下内容对我有用

apt-key del 7fa2af80
rm /etc/apt/sources.list.d/cuda.list
rm /etc/apt/sources.list.d/nvidia-ml.list
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-keyring_1.0-1_all.deb
dpkg -i cuda-keyring_1.0-1_all.deb

我在 docker 容器中运行了这些命令,因此在 VM 中您可能需要添加 sudo。

关于linux - Azure Nvidia 中的 apt-update 出现公钥错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72051754/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com