ubuntu apt update:The repository ‘xxx‘ is not signed.报错解决办法(未解决)

报错

在这里插入图片描述

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  InRelease
  The 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  InRelease
  The 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 

如果仍然无法解决问题,你可能需要确保你的网络连接正常,或者尝试使用代理服务器来连接。如果问题持续存在,可能需要进一步调查网络或服务器方面的问题。

在这里插入图片描述

还是不行,

算了,先不管了,貌似其他软件不影响。。

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Dontla

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值