Ubuntu install of ROS Noetic
The ROS build farm builds Debian packages for several Ubuntu platforms, listed below. These packages are ready to use so you don’t have to build from source. You can check the status of individual packages here.
Note that there are also packages available from Ubuntu upstream. Please see UpstreamPackages to understand the difference.
If you rely on these packages, please support OSRF.
These packages are built and hosted on infrastructure maintained and paid for by the Open Source Robotics Foundation, a 501(c)(3) non-profit organization. If OSRF were to receive one penny for each downloaded package for just two months, we could cover our annual costs to manage, update, and host all of our online services. Please consider donating to OSRF today.
- Ubuntu install of ROS Noetic
- Installation
- Configure your Ubuntu repositories
- Setup your sources.list
- Set up your keys
- Installation
- Environment setup
- Dependencies for building packages
Installation
Configure your Ubuntu repositories
Configure your Ubuntu repositories to allow «restricted,» «universe,» and «multiverse.» You can follow the Ubuntu guide for instructions on doing this.
Setup your sources.list
Set up your keys
Installation
First, make sure your Debian package index is up-to-date:
To find available packages, see ROS Index or use:
Environment setup
You must source this script in every bash terminal you use ROS in.
It can be convenient to automatically source this script every time a new shell is launched. These commands will do that for you.
Bash
If you have more than one ROS distribution installed,
/.bashrc must only source the setup.bash for the version you are currently using.
zsh
Dependencies for building packages
Up to now you have installed what you need to run the core ROS packages. To create and manage your own ROS workspaces, there are various tools and requirements that are distributed separately. For example, rosinstall is a frequently used command-line tool that enables you to easily download many source trees for ROS packages with one command.
To install this tool and other dependencies for building ROS packages, run:
Initialize rosdep
Before you can use many ROS tools, you will need to initialize rosdep. rosdep enables you to easily install system dependencies for source you want to compile and is required to run some core components in ROS. If you have not yet installed rosdep, do so as follows.
With the following, you can initialize rosdep.
Tutorials
Now, to test your installation, please proceed to the ROS Tutorials.
ROS One-line Installation
Check out this tutorial to install ROS Noetic using a single command.
Video Demonstration
Watch the video below to have more explanation on Installation and Sourcing Paths with step by step guide .
Wiki: noetic/Installation/Ubuntu (последним исправлял пользователь qboticslabs 2022-05-25 16:32:49)
How to Install ROS on Ubuntu 18.04

In this post, we are going step-by-step to install ROS Melodic in a fresh Ubuntu 18.04. I’m using a regular desktop computer, the one I use to support me on ROS development.
Step 1 – Configuration
The first step is adding the ROS repository to your ubuntu sources.list
Secondly, add the keys for accessing it:
And finally, update your packages list:
Step 2 – ROS Installation
We have some options at this point. They are:
a. ROS Base
It installs ROS package , build and communication libraries .
It is recommended for embedded computers, where you don’t have much hardware for graphical tools or real robots (in the production stage) to run their specific tasks, without the need of debugging.
b. ROS Desktop
It installs ROS Base , rqt , rviz and robot-generic libraries
These are the basic packages for ROS development. It’s recommended for beginners to follow tutorials about ROS without having to install too much. RQT and RVIZ provides graphical interfaces for visualizing what is happening behind the scenes. With this option, you don’t have to work only using shell.
c. ROS Desktop Full
It installs everything of ROS Desktop option plus 2D/3D simulators and 2D/3D perception.
If you want to simulate using ROS default Gazebo version, that’s your option. The Gazebo versions that comes with ROS Melodic is 9.0. (Related post: All about Gazebo 9)
For convenience, I’m installing the ROS Base option, because I want to have a faster installation. After running the command, you must have a confirmation at the end of the output in your terminal:
1 GB will be installed.
Just press enter to confirm. It may take a while. A progress bar must be shown at the bottom:
Go and have a coffee =)
In the end, just a regular message about the last packages installed:
And you must have a free terminal ready to use again:
Step 3 – ROS Dependencies
We are almost there! ROS commands Client can also manage dependencies for you and rosdep is the one in charge of it.
That’s why we have to initialize rosdep . It goes like this:
Similarly to ubuntu repositories, you need to update rosdep sometimes:
Step 4 – Configuring environment
We have ROS and the dependencies manager installed. Let’s configure our environment. This is a very important step, once we have it done, working with ROS will be smooth.
ROS is installed at /opt/ros/<distro> (in this case /opt/ros/melodic ). In order to have ROS commands available, it’s needed to source the shell file inside of the installation folder. This is done like the following:
But.. considering we want to have it available in every terminal we open, we use to have a “shortcut”, which is adding this command to the file «/home/<user>/.bashrc» . The .bashrc file is called every time a new terminal is opened, therefore, we won’t need to source ROS setup, since we have the instruction in this file. In order to add the command to the file, you can edit it manually using an editor of your preference or just execute the command below:
Step 5 – Testing it!
At this point, we must have everything in place. Let’s try some ROS commands to make sure the installation has finished successfully.
If you have the same terminal opened from the beginning, consequently, you have to execute the source for your .bashrc file to have ROS commands available.
And if you have added it to your .bashrc file, that’s the last time you will execute it =)
The first thing we should try it running roscore. In other words, we will run the process in charge of communicating everything ROS-related in a ROS environment.
Your terminal must be stuck here, therefore, you can’t execute anything else while you have roscore process there. roscore is running and ready to serve to other ROS processes!
Open a new terminal (your .bashrc will do the necessary source) and execute:
Step 6 – Conclusion
That’s it for today! You have ROS Melodic installed and ready to use!
If you like this kind of content, don’t forget to share it with your colleagues.
Either you like it or not, please leave a comment so we can keep improving our material!
- Installation