【问题标题】:ROS2 Dashing cannot be installed because the public key is not availableROS2 Dashing 无法安装,因为公钥不可用
【发布时间】:2021-05-29 06:39:12
【问题描述】:
  • 操作系统:ubuntu 18.04
  • 安装:ROS2 Dashing
  • 安装日期:2021/05/29

官方文档 "https://docs.ros.org/en/dashing/Installation/Ubuntu-Install-Debians.html"

我尝试参考官方文档安装它,但由于公钥不可用,我无法获取 apt 存储库。

W: GPG error: http://packages.ros.org/ros2/ubuntu bionic InRelease: The following signatures were invalid: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfoundation.org>
E: The repository 'http://packages.ros.org/ros2/ubuntu bionic 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.

我试过了。

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

另一篇文章说这样做可以解决,所以我做了,但还是不行。

sudo apt-key adv -keyserver keyserver.ubuntu.com -recv-keys F42ED6FBAB17C654

最近有什么变化吗? 请帮帮我。

【问题讨论】:

    标签: ubuntu-18.04 ros2


    【解决方案1】:

    刚刚遇到了类似的问题,对我来说,this 修复了它。基本上,我添加了新的存储库密钥并删除了旧的。为方便起见,在此处列出命令:

    # add new repository key:
    sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
    
    # remove old repository key:
    sudo apt-key del 421C365BD9FF1F717815A3895523BAEEB01FA116
    

    希望这对您也有帮助!

    更新:如果没有,请看这两个:

    【讨论】:

    • to tkazik 非常感谢。我能够解决它!
    猜你喜欢
    • 1970-01-01
    • 2022-11-25
    • 2017-07-28
    • 2022-07-09
    • 1970-01-01
    • 2018-10-18
    • 2022-07-17
    • 1970-01-01
    • 2023-03-24
    相关资源
    最近更新 更多