Merge branch 'lss233-patch-1'

This commit is contained in:
Zenithal 2022-05-03 01:13:03 +08:00
commit 463329a2ca
No known key found for this signature in database
GPG Key ID: 1189C659F3D04C1C

View File

@ -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
```
再输入如下命令,添加软件仓库,并更新索引:
<form class="form-inline">
<div class="form-group">
@ -34,16 +41,10 @@ mirrorid: ros2
{% raw %}
<script id="apt-template" type="x-tmpl-markup">
deb https://{%endraw%}{{ site.hostname }}{%raw%}/ros2/ubuntu/ {{release_name}} main
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] https://{%endraw%}{{ site.hostname }}{%raw%}/ros2/ubuntu {{release_name}} main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
sudo apt update
</script>
{%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/
Reference: https://docs.ros.org/en/foxy/Installation/Ubuntu-Install-Debians.html