Skip to main content
One-time setup for a fresh install. Run these steps once; after that, proceed directly to TurtleBot3 setup. These steps follow the standard ROS 2 Jazzy installation process for Ubuntu. If you’re already familiar with it, refer to the official ROS 2 Jazzy installation documentation — the commands below mirror it exactly.

1. Add the ROS 2 Jazzy Repository

sudo apt update
sudo apt install -y curl gnupg2 lsb-release ca-certificates software-properties-common locales
sudo locale-gen en_US en_US.UTF-8
sudo update-locale LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8

sudo add-apt-repository universe -y
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/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] \
  http://packages.ros.org/ros2/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" \
  | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null

2. Install ROS 2 Jazzy

sudo apt update
sudo apt install -y ros-jazzy-desktop \
  python3-colcon-common-extensions \
  python3-rosdep \
  python3-argcomplete
sudo rosdep init || true
rosdep update

3. Configure Environment

Append to ~/.bashrc so every new terminal sources ROS automatically:
echo 'source /opt/ros/jazzy/setup.bash' >> ~/.bashrc
source ~/.bashrc