一次复制安装ros2---全程看得见的代码安装ros2

1: 这个代码使用了国内的gitee仓库获取到了key文件,解决了ros.key问题,这个仓库是我自用的,你要是用了也可以,但是你就前我一个人请

2:使用了清华下载

3:从此再也不用出意外了

4:建议晚上2点钟之前下载,否则可能发生意外

locale  # check for UTF-8

sudo apt update && sudo apt install locales
sudo locale-gen en_US en_US.UTF-8
sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
export LANG=en_US.UTF-8

locale  # verify settings
sudo apt install software-properties-common
sudo apt update && sudo apt install curl -y
curl -sSL https://gitee.com/geniuschinahn/rosdistro/raw/master/ros.key  -o /usr/share/keyrings/ros-archive-keyring.gpg

echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] https://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu jammy main" | tee /etc/apt/sources.list.d/ros2.list > /dev/null

sudo apt update
sudo apt upgrade
sudo apt install ros-humble-desktop-full

你可能感兴趣的:(ros2,机器人)