ROS2系统学习2---Ubuntu20.04下ROS2的安装

添加软件源

添加密钥

sudo apt update && sudo apt install curl gnupg lsb-release
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg

如果出现“curl: (7) Failed to connect to raw.githubusercontent.com port 443: 拒绝连接”的错误:

sudo gedit /etc/hosts
199.232.68.133 raw.githubusercontent.com

添加软件源

echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
<

你可能感兴趣的:(ROS操作系统学习,自动驾驶,bash,linux)