diff --git a/help/_posts/1970-01-01-ros2.md b/help/_posts/1970-01-01-ros2.md index d466f79..c4bbe58 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 +``` + + +再输入如下命令,添加软件仓库,并更新索引:
@@ -34,16 +41,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