我在 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.
安裝我使用的密鑰
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv A4B469963BF863CC
但這給出了 No data 錯誤。gpg: keyserver receive failed: No data
我可以運行sudo apt-get upgrade但不能更新。任何幫助,將不勝感激
即使安裝了 cuda,但它仍然找不到 cuda 庫,這可能是由于更新。
uj5u.com熱心網友回復:
以下對我有用
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。
uj5u.com熱心網友回復:
我找到了解決方案。由于今天發生了 NVidia GPG 密鑰輪換,因此發生此錯誤。所有詳細資訊均已提供https://developer.nvidia.com/blog/updating-the-cuda-linux-gpg-repository-key/
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/468037.html
