• 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:~#
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26

    原因及解决办法

    这个错误是由于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 
    
    • 1
    • 2

    这将从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
    • 2

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

    在这里插入图片描述

    还是不行,

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

  • 相关阅读:
    超详细教程—快速创建PD
    Day 03 python学习笔记
    ARM中断实验
    从0到1完全掌握 XSS
    基于PHP+MySQL动漫周边商城销售网站的开发与设计
    【Linux从入门到放弃】Linux权限详解
    MTK平台Metadata的加载(1)——Metadata介绍
    2022年金属非金属矿井通风上岗证题库及模拟考试
    FFmpeg入门详解之115:X264编码
    计算机毕业设计Java华夏球迷俱乐部网站设计与实现(源码+系统+mysql数据库+lw文档)
  • 原文地址:https://blog.csdn.net/Dontla/article/details/138065921