What is Ubuntu? Why ROS2 officially supports only certain versions
Atlasbot · 20/8/2026 · 10 min read
Installing the wrong version of Ubuntu is a common reason why newbies follow the exact instructions for installing ROS2 but still get the "Unable to locate package" error right from the start. Ubuntu has many versions, but ROS2 only officially supports a few specific versions — understanding this relationship before installation saves a lot of debugging time.
What is Ubuntu?
Ubuntu is a **** Linux distribution developed by Canonical, based on Debian — inheriting Debian's apt/.deb package management system but adding easier-to-use installation tools, more available hardware driver support, and a regular release cycle. This is why Ubuntu has become the most popular choice for robotic computers, although ROS2 technically runs on other (less officially supported) Linux distros.
LTS version — the most important milestone to remember
Ubuntu releases a new version every 6 months, but every 2 years there is a LTS (Long Term Support) — 5 years of bug/security patch support, numbered by year and month of release (eg: 22.04 = released April 2022). ROS2 is almost exclusively aimed at LTS versions because it requires a long-term stable platform for robots to run in real production — no one wants a stable running robot to have to upgrade the operating system every 6 months.
Summary: Ubuntu is a Debian-based distro; ROS2 only officially supports specific versions of Ubuntu LTS — installing the correct Ubuntu-ROS2 pair from the start is more important than installing the "latest" version of Ubuntu.
The most popular Ubuntu — ROS2 pair
| Ubuntu (LTS) | Code name | Corresponding ROS2 version | Notes |
|---|---|---|---|
| 20.04 | Focal Fossa | ROS2 Foxy | Official support has ended, there are still many old documents/drivers using this version |
| 22.04 | Jammy Jellyfish | ROS2 Humble | The most popular LTS version currently for realistic robots, long-term support |
| 24.04 | Noble Numbat | ROS2 Jazzy | Newer versions, some third-party drivers/packages may not have been updated yet |
The table above is just the most common pairs — always check the REP 2000 document (the official ROS2 document that lists the supported platforms for each release) before installing, as this list changes over time as new versions of ROS2 are released.
What is the difference between Ubuntu Desktop and Ubuntu Server?
- Ubuntu Desktop — has a full graphical interface (GUI), suitable for development machines (laptops/PCs) where you write code and debug using RViz2.
- Ubuntu Server — no GUI, significantly lighter, faster startup, less RAM/CPU consumption for the interface — suitable for installation on real robots (Raspberry Pi, Jetson mounted on the robot) just need to run ROS2 node, no need for a separate screen.
Actual robots often run Ubuntu Server (or Desktop but with GUI turned off) and then remotely control/debug via SSH — see SSH article in this category.
Technical details
Formulas
Ubuntu's LTS release cycle follows a fixed rule, helping to predict the next version:
Next LTS Year = Current LTS Year + 2, always April release
For example: 22.04 (2022) → the next LTS is 24.04 (2024) → the next is 26.04 (2026)
Parameters
Resource comparison between 2 Ubuntu variants — decide directly on the choice for limited RAM/CPU robot computer:
| Variation | RAM when idle (reference) | Suitable for |
|---|---|---|
| Ubuntu Desktop (full GUI) | ~1-1.5GB | Development machine, need to run RViz2 directly |
| Ubuntu Server (no GUI) | ~200-400MB | Real robot, just needs to run background ROS2 node |
Security/patch support duration: standard LTS supported 5 years from release date; Canonical's Ubuntu Pro paid service package can extend support for up to 10 years for systems that require a very long life cycle (suitable for industrial equipment with long-term deployment).
Practical applications
When deploying a fleet of multiple AMR robots (fleet), standard practice is to pre-build a 1 "golden image" — an installation of Ubuntu + ROS2 + all properly configured and thoroughly tested drivers on a sample machine, then copy (clone) the same drive to every remaining robot — instead of manually installing each machine (it's easy to vary the package version between robots, causing the "this robot works, that robot" error no" is very difficult to trace). Synchronizing a correct pair of Ubuntu-ROS2 for the entire squad is a prerequisite for this golden image to operate consistently.
Practical example: check which version Ubuntu is running
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy
# Alternatively, available even if the lsb-release package is missing
$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.4 LTS"
VERSION_ID="22.04"
Run this command before following any instructions for installing ROS2 — compare it to the Ubuntu-ROS2 pairing table above to make sure you are installing the correct ROS2 for the correct version of Ubuntu.
Common mistakes
Unable to locate package ros-humble-desktop— usually caused by installing Humble (targeting Ubuntu 22.04) on Ubuntu 20.04 or 24.04, or forgetting to add the ROS2 software repository to the source list (sources.list) beforeapt update.add-apt-repository: command not found— missing packagesoftware-properties-common, installed withsudo apt install software-properties-common.- Lack of latest drivers/packages on Ubuntu 24.04 — the Ubuntu version is too new, sometimes causing some third-party hardware drivers (LiDAR, camera) to not be updated to support it yet — if you encounter a strange error, try checking to see if that driver project officially supports Ubuntu 24.04 before deep debugging.
Conclusion
Not "any Ubuntu will do" when building a robot with ROS2 — choosing the correct Ubuntu LTS - ROS2 pair according to the official REP 2000 table is the first step more important than the installation. The next article in this section is about Terminal — the tool you'll use the most once you get Ubuntu running properly.
Get new articles and lessons by email
When a new technical article or course module is published, Atlas Robotics sends you a short email. No spam.
Unsubscribe any time with the link in each email. See our Privacy policy.