文章目录
- 报错
- 原因及解决办法
报错
root@jax:~# apt update
Get:1 file:/var/cuda-repo-l4t-11-4-local InRelease [1575 B]
Get:2 file:/var/cudnn-local-repo-ubuntu2004-8.4.1.50 InRelease [1575 B]
Get:1 file:/var/cuda-repo-l4t-11-4-local InRelease [1575 B]
Get:2 file:/var/cudnn-local-repo-ubuntu2004-8.4.1.50 InRelease [1575 B]
Err:1 file:/var/cuda-repo-l4t-11-4-local InReleaseThe following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7ABA1A6E82DB0B48
Hit:3 http://ports.ubuntu.com/ubuntu-ports focal InRelease
Get:6 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease [114 kB]
Hit:4 https://repo.download.nvidia.cn/jetson/common r35.1 InRelease
Hit:5 https://repo.download.nvidia.cn/jetson/t194 r35.1 InRelease
Err:2 file:/var/cudnn-local-repo-ubuntu2004-8.4.1.50 InReleaseThe following signatures couldn't be verified because the public key is not available: NO_PUBKEY 02795CF5E2373DC0
Hit:7 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease
Hit:8 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease
Reading package lists... Done
W: GPG error: file:/var/cuda-repo-l4t-11-4-local InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7ABA1A6E82DB0B48
E: The repository 'file:/var/cuda-repo-l4t-11-4-local InRelease' is not 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.
W: GPG error: file:/var/cudnn-local-repo-ubuntu2004-8.4.1.50 InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 02795CF5E2373DC0
E: The repository 'file:/var/cudnn-local-repo-ubuntu2004-8.4.1.50 InRelease' is not 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.
root@jax:~#
原因及解决办法
这个错误是由于apt无法验证软件源的公钥所导致的。当你更新软件包列表时,apt会尝试验证软件源的签名以确保下载的软件包是可信的,但是在这种情况下,apt无法验证/var/cuda-repo-l4t-11-4-local和/var/cudnn-local-repo-ubuntu2004-8.4.1.50这两个软件源的签名。
错误信息中提到了缺少公钥的信息,例如:
- NO_PUBKEY 7ABA1A6E82DB0B48
- NO_PUBKEY 02795CF5E2373DC0
为了解决这个问题,你需要获取缺失的公钥并将其添加到系统中。你可以通过以下命令来添加缺失的公钥:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7ABA1A6E82DB0B48 sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 02795CF5E2373DC0
这将从Ubuntu的公钥服务器上获取缺失的公钥并将其添加到你的系统中。然后,重新运行apt update命令来更新软件包列表。
但是执行报错了:
这个错误通常是由于无法连接到Ubuntu的公钥服务器所致,导致无法获取到所需的公钥。这可能是由于网络问题、服务器问题或者防火墙等原因造成的。
你可以尝试使用不同的公钥服务器来获取公钥,例如使用pgp.mit.edu作为替代:
sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 7ABA1A6E82DB0B48 sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 02795CF5E2373DC0
如果仍然无法解决问题,你可能需要确保你的网络连接正常,或者尝试使用代理服务器来连接。如果问题持续存在,可能需要进一步调查网络或服务器方面的问题。
还是不行,
算了,先不管了,貌似其他软件不影响。。