ROS2入门教程-在ubuntu24.04下apt安装ros2版本jazzy
说明:
- 介绍如何安装ros2版本jazzy
- 测试环境系统:ubuntu24.04
步骤:
- 支持utf字符
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 add-apt-repository universe
- 安装 ros2-apt-source 软件包
sudo apt update && sudo apt install curl -y
export ROS_APT_SOURCE_VERSION=$(curl -s https://api.github.com/repos/ros-infrastructure/ros-apt-source/releases/latest | grep -F "tag_name" | awk -F'"' '{print $4}')
curl -L -o /tmp/ros2-apt-source.deb "https://github.com/ros-infrastructure/ros-apt-source/releases/download/${ROS_APT_SOURCE_VERSION}/ros2-apt-source_${ROS_APT_SOURCE_VERSION}.$(. /etc/os-release && echo ${UBUNTU_CODENAME:-${VERSION_CODENAME}})_all.deb"
sudo dpkg -i /tmp/ros2-apt-source.deb
- 更新 apt 软件仓库缓存
sudo apt update
- 确保系统已更新至最新版本
sudo apt upgrade
- 安装jazzy
sudo apt install ros-jazzy-desktop
- 设置环境
source /opt/ros/jazzy/setup.bash
参考资料:https://docs.ros.org/en/jazzy/Installation/Ubuntu-Install-Debs.html


















