mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
help: ros2: stop using apt-key
This commit is contained in:
parent
84675443f1
commit
ae2ca58e37
|
|
@ -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">
|
||||
|
|
@ -31,16 +38,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
|
||||
|
|
|
|||
Loading…
Reference in New Issue