error:opening registry key_ros初始化

error:opening registry key_ros初始化运行sudoaptupdate的时候出现下面的错误:Err:11http://packages.ros.org/ros2/ubuntuxenialInReleaseThefollowingsignaturescouldn’tbeverifiedb…

大家好,又见面了,我是你们的朋友全栈君。如果您正在找激活码,请点击查看最新教程,关注关注公众号 “全栈程序员社区” 获取激活教程,可能之前旧版本教程已经失效.最新Idea2022.1教程亲测有效,一键激活。

Jetbrains全系列IDE稳定放心使用

运行 sudo apt update的时候出现下面的错误:

Err:11 http://packages.ros.org/ros2/ubuntu xenial InRelease                                                             
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F42ED6FBAB17C654

或者:

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://packages.ros.org/ros2/ubuntu focal InRelease: The following signatures were invalid: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfoundation.org>
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu focal Release: The following signatures were invalid: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfoundation.org>
W: Failed to fetch http://packages.ros.org/ros2/ubuntu/dists/focal/InRelease  The following signatures were invalid: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfoundation.org>
W: Failed to fetch http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu/dists/focal/Release.gpg  The following signatures were invalid: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfoundation.org>
W: Some index files failed to download. They have been ignored, or old ones used instead.

试了一些办法,包括

sudo apt-key del F42ED6FBAB17C654

显示是ok,但是update之后还是会提示错误。

试了

sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654

还是不行。

试了:

curl http://repo.ros2.org/repos.key | sudo apt-key add -

还是不行.

最后解决办法:

ROS1:

curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -

ROS 2 :

sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg

然后就ok了。


补充:

raspi4上用的是以下指令:

curl http://repo.ros2.org/repos.key | sudo apt-key add -
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/189472.html原文链接:https://javaforall.net

(0)
上一篇 2026年4月13日 下午4:19
下一篇 2026年4月13日 下午4:25


相关推荐

  • n8n vs dify vs Coze:三大AI工作流平台终极对决

    n8n vs dify vs Coze:三大AI工作流平台终极对决

    2026年3月15日
    3
  • JavaScript RegExp对象

    JavaScript RegExp对象

    2021年12月14日
    43
  • SPSS异方差检验的实现

    SPSS异方差检验的实现SPSS 异方差检验的实现此次介绍两种异方差检验的方法 残差图分析法和等级相关系数法残差图分析法当回归模型满足所有假定时 残差图上的 n 个点的散步应该是随机的 无任何规律 如果回归模型存在异方差性 残差图上的点散布会呈现一定的趋势 在 SPSS 中选择 转换 回归 线性 分别选入对应的自变量因变量 点击 保存 在残差栏中选择未标准化 确定 选择 图形 旧对话框 散点图 将未标准化的残差选入 X 轴 自变量选入 Y 轴点击 确定 得到残差图等级相关系数法计算残差步骤在 1 中已演示

    2025年6月23日
    6
  • 至强系列cpu天梯图_cpu天梯图2018

    至强系列cpu天梯图_cpu天梯图2018Helio,大家好,距离上一次天梯图更新已经过去一个月时间了,伴随着新的月份到来,新的天梯图该进行更新修正了,下面小编带来CPU天梯图2018年11月最新版,希望对大家有所帮助。CPU天梯图2018年11月最新版:CPU天梯图2018年11月最新版十一月电脑CPU天梯图性能排行新增了几款上个月新上市的几款处理器,尤其是Intel九代酷睿处理器的排行情况,通过前面的评测相信大家基本上对九代酷睿处理器…

    2025年11月27日
    8
  • Pycharm 快捷键 整理

    Pycharm 快捷键 整理From http www cnblogs com themost p 6900370 htmlhttp idea lanyus com https mp weixin com s MGn IgK8ZmVYq0jG pan baidu com s 112tS3XjAENI aSCe0dAhttps zhil

    2026年3月27日
    4
  • error at hooking api ntprotect_read,match and write

    error at hooking api ntprotect_read,match and write 编译环境:delphi2010+windows7u,用途读取其他程序中readprocessmemory和writeprocessmemory的参数,但不知读取偏移即a+($b),b是怎么读的  一、用hook全局钩子线程钩子:已实现使用INLINEhookapi,CriticalSection临界区,dll分为动态loadlibry和静态加载问题1:对多线程目标

    2025年11月5日
    5

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号