# ROS2 Mirror

新建 /etc/apt/sources.list.d/ros2-latest.list,内容为(以Ubuntu 20.04 LTS为例):

deb https://mirrors.sustech.edu.cn/ros2/ubuntu/ focal main

然后再输入如下命令,信任 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/

# 参考