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

ops/2024/10/19 3:26:06/

文章目录

    • 报错
    • 原因及解决办法

报错

在这里插入图片描述

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 

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

在这里插入图片描述

还是不行,

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


http://www.ppmy.cn/ops/10437.html

相关文章

Qt环境搭建

下载QtSDK 下载QtSDK当然是去官方网站下载。 Index of /archive/qt/5.14/5.14.2 不过由于官方网站是国外的网站,如果不进行科学上网会很慢,这里贴上我的百度网盘资源。 链接:https://pan.baidu.com/s/1eU1Gw8e8Ax5UDyHM9bNG_w 提取码&am…

146.LRU缓存

题目: 请你设计并实现一个满足 LRU (最近最少使用) 缓存 约束的数据结构。 实现 LRUCache 类: LRUCache(int capacity) 以 正整数 作为容量 capacity 初始化 LRU 缓存int get(int key) 如果关键字 key 存在于缓存中,则返回关键字的值&…

Spring控制反转(IOC)是什么

Spring框架的核心特性之一是控制反转(Inversion of Control,IoC),这是一个核心概念,用于减少代码之间的耦合度,使程序更加模块化、可扩展和可测试。其主要目的是将原本由代码直接操控的对象的调用权交给第三方(例如一个容器)来控制,以解耦代码,提高程序的可维护性和可…

Linux i2c-tool工具基础使用

一.i2cdetect i2cdetect 是一个用户空间程序,用于扫描 I2C 总线上的设备。它输出一个表格,其中包含指定总线上检测到的设备列表。以下是 i2cdetect 的使用方法: 运行扫描: 要执行 I2C 扫描,请使用以下命令&#xff1…

Spark 中的分桶分化

Spark 中的分桶分化 Bucketing是 Spark 和 Hive 中用于优化任务性能的一种技术。在分桶桶(集群列)中确定数据分区并防止数据混洗。根据一个或多个分桶列的值,将数据分配给预定义数量的桶。 分桶有两个主要好处: 改进的查询性能&…

ng反向代理 conf配置

log_format szxw_timed_combined $remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" "$http_x_forwarded_for" $request_time $upstream_response_time;#外部转发 …

简单了解 HTTP 基础知识

HTTP(Hypertext Transfer Protocol,超文本传输协议)是用于在网络上传输数据的一种协议,对于网络开发人员来说,理解这一协议是至关重要的。由于其广泛的应用,除了在网页应用传输数据之外,它还被应…

BI建设案例:FineBI大数据分析平台助力工程机械行业降本增效

工程机械行业作为国民经济的重要支柱,产品多样化、应用广泛,市场集中度高。其上游涉及原材料和核心零部件,下游则与房地产、基建工程和采矿等行业紧密相连。 如今,中国已崛起为全球工程机械制造大国,各类机械产品产量…