无法安装 ROS2 Dashing,因为 public 密钥不可用
ROS2 Dashing cannot be installed because the public key is not available
- OS: ubuntu 18.04
- 安装:ROS2 Dashing
- 安装日期:2021/05/29
官方文档
“https://docs.ros.org/en/dashing/Installation/Ubuntu-Install-Debians.html”
我尝试参考官方文档安装它,但我无法获取 apt 存储库,因为 public 密钥不可用。
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
最近有什么变化吗?
请帮助我。
刚刚遇到了类似的问题,对我来说,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
希望这对你也有帮助!
更新:如果没有,请看这两个:
- OS: ubuntu 18.04
- 安装:ROS2 Dashing
- 安装日期:2021/05/29
官方文档 “https://docs.ros.org/en/dashing/Installation/Ubuntu-Install-Debians.html”
我尝试参考官方文档安装它,但我无法获取 apt 存储库,因为 public 密钥不可用。
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
最近有什么变化吗? 请帮助我。
刚刚遇到了类似的问题,对我来说,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
希望这对你也有帮助!
更新:如果没有,请看这两个: