From ae2ca58e37adba55a09a7e2d3989b1651a5b2cd0 Mon Sep 17 00:00:00 2001 From: Dark Litss Date: Thu, 13 Jan 2022 00:04:33 +0800 Subject: [PATCH] help: ros2: stop using apt-key --- help/_posts/1970-01-01-ros2.md | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/help/_posts/1970-01-01-ros2.md b/help/_posts/1970-01-01-ros2.md index eb9fae1..baa1dd3 100644 --- a/help/_posts/1970-01-01-ros2.md +++ b/help/_posts/1970-01-01-ros2.md @@ -6,8 +6,15 @@ mirrorid: ros2 ## ROS2 镜像使用帮助 +输入如下命令,下载 ROS 的 GPG Key: -新建 `/etc/apt/sources.list.d/ros2-latest.list`,内容为: +``` +sudo apt install curl gnupg2 +sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg +``` + + +再输入如下命令,添加软件仓库,并更新索引:
@@ -31,16 +38,10 @@ mirrorid: ros2 {% raw %} {%endraw%} -然后再输入如下命令,信任 ROS 的 GPG Key,并更新索引: - -``` -sudo apt install curl gnupg2 -curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add - -sudo apt update -``` - -Reference: https://index.ros.org/doc/ros2/Installation/Crystal/Linux-Install-Binary/ \ No newline at end of file +Reference: https://docs.ros.org/en/foxy/Installation/Ubuntu-Install-Debians.html