W: GPG 错误:file:/var/cuda-repo-9-0-local Release: 由于没有公钥,无法验证下列签名: NO_PUBKEY F60F4B3D7FA2AF80

本文详细介绍了在尝试从CUDA仓库安装组件时遇到的GPG错误,并提供了具体的解决方案,包括如何使用apt-key命令导入缺失的公钥,以确保仓库签名的验证。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

W: GPG 错误:file:/var/cuda-repo-9-0-local  Release: 由于没有公钥,无法验证下列签名: NO_PUBKEY F60F4B3D7FA2AF80
W: 仓库 “file:/var/cuda-repo-9-0-local  Release” 没有数字签名。
N: 无法认证来自该源的数据,所以使用它会带来潜在风险。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。

 

解决:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F60F4B3D7FA2AF80
(F60F4B3D7FA2AF80是自己的代码,可能不同)

 

xzm@xzm-nb:~/zed_ws$ sudo apt-key adv --keyserver &#39;hkp://keyserver.ubuntu.com:80&#39; --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 Executing: /tmp/apt-key-gpghome.wdJjuQUMLd/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 gpg: 密钥 F42ED6FBAB17C654:“Open Robotics <info@osrfoundation.org>” 1 个签名被清理 gpg: 处理的总数:1 gpg: 清理的签名:1 xzm@xzm-nb:~/zed_ws$ sudo apt update 获取:1 file:/var/cuda-repo-ubuntu1804-11-6-local InRelease 忽略:1 file:/var/cuda-repo-ubuntu1804-11-6-local InRelease 获取:2 file:/var/cudnn-local-repo-ubuntu1804-8.6.0.163 InRelease [1,575 B] 获取:3 file:/var/cuda-repo-ubuntu1804-11-6-local Release [564 B] 获取:2 file:/var/cudnn-local-repo-ubuntu1804-8.6.0.163 InRelease [1,575 B] 获取:3 file:/var/cuda-repo-ubuntu1804-11-6-local Release [564 B] 错误:2 file:/var/cudnn-local-repo-ubuntu1804-8.6.0.163 InRelease 由于没有公钥无法验证下列签名NO_PUBKEY B695BAFC77B32ECB 命中:5 http://mirrors.aliyun.com/ubuntu bionic InRelease 命中:6 http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu bionic InRelease 命中:7 http://mirrors.aliyun.com/ubuntu bionic-security InRelease 命中:8 http://mirrors.aliyun.com/ubuntu bionic-updates InRelease 获取:10 http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu bionic InRelease [4,680 B] 命中:11 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic InRelease 命中:12 http://mirrors.aliyun.com/ubuntu bionic-proposed InRelease 命中:13 http://mirrors.aliyun.com/ubuntu bionic-backports InRelease 命中:14 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic InRelease 获取:15 http://packages.ros.org/ros/ubuntu bionic InRelease [4,680 B] 命中:9 https://packages.microsoft.com/repos/vscode stable InRelease 获取:16 http://packages.ros.org/ros/ubuntu bionic/main i386 Packages [28.8 kB] 获取:17 http://packages.ros.org/ros/ubuntu bionic/main amd64 Packages [809 kB] 正在读取软件包列表... 完成 W: GPG 错误file:/var/cudnn-local-repo-ubuntu1804-8.6.0.163 InRelease: 由于没有公钥无法验证下列签名NO_PUBKEY B695BAFC77B32ECB E: 仓库 “file:/var/cudnn-local-repo-ubuntu1804-8.6.0.163 InRelease没有数字签名。 N: 无法安全地用该源进行更新,所以默认禁用该源。 N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
最新发布
07-13
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值