| Item | Requirement |
|---|---|
| OS | Ubuntu 24.04 LTS (codename noble) |
| Disk | SSD recommended, 128 GB or more; expand first if below 40 GB |
| Network | Access to packages.ros.org and github.com |
| Time | 15–40 minutes, depending on network |
| Version | ROS 2 Jazzy Jalisco, supported until May 2029 |
This guide starts from a machine that already runs Ubuntu 24.04 and has network access. Installing the OS is out of scope; if the machine has no system yet, install Ubuntu 24.04 Desktop first, then start at Step 1.
Install Ubuntu on the disk you want ROS on. Reinstalling the OS on another disk wipes ROS with it, so pick the disk first. eMMC works, but an SSD saves trouble once you start building packages and recording data.
lsb_release -a
Codename must be noble:
Distributor ID: Ubuntu
Description: Ubuntu 24.04.x LTS
Release: 24.04
Codename: noble

If it is not noble, stop here and change the OS first.
locale
LANG should read en_US.UTF-8:
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
...

If it is not UTF-8, run:
sudo apt update && sudo apt install -y 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
sudo apt install -y software-properties-common
sudo add-apt-repository universe
The second command stops and waits. Press Enter when you see this:
Adding component(s) 'universe' to all repositories.
Press [ENTER] to continue or Ctrl-c to cancel.

The trailing backslashes continue each command onto the next line. Keep them.
sudo apt update && sudo apt install -y curl
export ROS_APT_SOURCE_VERSION=$(curl -fsSL -o /dev/null -w '%{url_effective}' \
https://github.com/ros-infrastructure/ros-apt-source/releases/latest | awk -F/ '{print $NF}')
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
Check that the source file is in place:
ls /etc/apt/sources.list.d/ | grep -i ros
You should see ros2.sources, as in Figure 4.

If GitHub is slow or unreachable, download ros2-apt-source_<version>.noble_all.deb by hand from https://github.com/ros-infrastructure/ros-apt-source/releases, copy it to the machine and install it with sudo dpkg -i.
If the board runs a vendor kernel (BSP), hold the kernel first, because apt upgrade will upgrade it too: sudo apt-mark hold linux-image-generic linux-headers-generic. To allow kernel upgrades again later, run sudo apt-mark unhold on the same package names.
sudo apt update
sudo apt upgrade
apt upgrade lists the packages and asks for confirmation. Type y and press Enter:
Do you want to continue? [Y/n] y
The number of upgraded packages differs from machine to machine. Seeing this line means the prompt was answered.
Now install ROS:
sudo apt install -y ros-jazzy-desktop
This is a large package set; the download and install take a while, so do not close the window. You are done when the prompt comes back. The long list of Adding debian:xxx.pem lines is a certificate update, not an error.
Right after installation ros2 is not on the PATH yet:
$ ros2 --help
ros2: command not found

That is expected. Run:
source /opt/ros/jazzy/setup.bash
The command prints nothing and returns to the prompt.
Check it:
echo $ROS_DISTRO
It should print jazzy:
jazzy

Close the terminal, or open a new one, and the environment is gone. That is why 6.2 is needed.
Add the same line to ~/.bashrc, once:
echo "source /opt/ros/jazzy/setup.bash" >> ~/.bashrc
Make sure it was added only once:
grep -c "opt/ros/jazzy/setup.bash" ~/.bashrc
The result should be 1. Anything higher means it was added before; delete the extra line with nano ~/.bashrc.
To verify, open a new terminal: close the old one and start a fresh shell, rather than running source ~/.bashrc in the same window. ROS_DISTRO should still be jazzy.
A quick look at all ROS variables:
printenv | grep -i ROS
You should see ROS_VERSION, ROS_PYTHON_VERSION and ROS_DISTRO=jazzy.
The real check is whether two nodes can exchange messages. 7.1 is the hard check; 7.2 runs a turtle so you can see it.
Open two terminals.
Terminal A:
source /opt/ros/jazzy/setup.bash
ros2 run demo_nodes_cpp talker
Terminal B:
source /opt/ros/jazzy/setup.bash
ros2 run demo_nodes_py listener
Terminal A keeps printing:
[INFO] [talker]: Publishing: 'Hello World: 1'
Terminal B keeps printing:
[INFO] [listener]: I heard: [Hello World: 1]

If both sides see each other, the C++ and Python APIs are working. If not, close both terminals and reopen them, then check that ROS_DOMAIN_ID matches on both sides.
turtlesim comes with the desktop packages, so there is nothing extra to install. Install ros-jazzy-turtlesim only if the command complains about a missing package.
Terminal A, start the window:
source /opt/ros/jazzy/setup.bash
ros2 run turtlesim turtlesim_node
Terminal B, keyboard control. Click this terminal first, then use the arrow keys:
source /opt/ros/jazzy/setup.bash
ros2 run turtlesim turtle_teleop_key
The turtle moves, which means /turtle1/cmd_vel is flowing.

To draw a clean circle instead of pressing keys:
ros2 topic pub -r 20 /turtle1/cmd_vel geometry_msgs/msg/Twist "{linear: {x: 1.5}, angular: {z: 0.8}}"
One lap takes about 8 seconds. Press Ctrl+C, then publish a zero twist "{linear: {x: 0.0}, angular: {z: 0.0}}" so the turtle stops.
To watch the data, open a third terminal:
source /opt/ros/jazzy/setup.bash
ros2 topic echo /turtle1/pose
While the turtle moves, this keeps printing changing x, y and theta values.