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 

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

在这里插入图片描述

还是不行,

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

相关推荐

  1. React 项目解决办法收录

    2024-04-23 11:02:07       43 阅读
  2. npm installERR code ETIMEDOUT的解决办法

    2024-04-23 11:02:07       59 阅读
  3. Vivado Synth8-5535 解决办法

    2024-04-23 11:02:07       58 阅读
  4. Ubuntu中rosdep update解决办法

    2024-04-23 11:02:07       50 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-04-23 11:02:07       91 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-04-23 11:02:07       97 阅读
  3. 在Django里面运行非项目文件

    2024-04-23 11:02:07       78 阅读
  4. Python语言-面向对象

    2024-04-23 11:02:07       88 阅读

热门阅读

  1. 【微软押注ARM架构,“Wintel”联盟摇摇欲坠?】

    2024-04-23 11:02:07       36 阅读
  2. 迭代加深搜索

    2024-04-23 11:02:07       36 阅读
  3. 用爬虫玩转石墨文档

    2024-04-23 11:02:07       37 阅读
  4. PDD爬虫工具分享 采集拼多多商家联系方式的工具

    2024-04-23 11:02:07       28 阅读
  5. LINUX固定USB设备名称

    2024-04-23 11:02:07       32 阅读
  6. 20240423信息爆炸的时代,我们为什么还要读书?

    2024-04-23 11:02:07       36 阅读
  7. 第7章 面向对象基础-下

    2024-04-23 11:02:07       28 阅读
  8. python篇-自动化-poco

    2024-04-23 11:02:07       28 阅读