ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Upgrade from Ubuntu 18 to Ubuntu 22 and install ROS 2 Humble

asked 2022-12-30 23:53:36 -0600

Robo_guy gravatar image

updated 2022-12-30 23:56:42 -0600

Hello everyone, I am presently having Ubuntu 18 on my laptop with ROS Melodic installed and I want to upgrade to Ubuntu 22 and install ROS 2 Humble. I want to know if upgrading to higher Ubuntu versions causes any problems in the existing ROS codes and packages. I just want to upgrade my Ubuntu version, install ROS Noetic and install ROS 2 Humble. If anybody has upgraded their Ubuntu version, please let me know if you encountered any problems in running previous existing ROS Melodic or previous ROS version packages or it is safe to upgrade and all existing ROS packages run smoothly.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-12-31 09:06:36 -0600

robustify gravatar image

ROS Noetic is the last ROS 1 distribution, and it is only supported in Ubuntu 20.04. You won't be able to use any ROS 1 packages in Ubuntu 22.04; you'll have to migrate your packages to ROS 2 Humble first. This is definitely not a trivial process, but here is a good place to start: Migration Guide

edit flag offensive delete link more

Comments

Ok thank you for answering my question and thanks for providing the migration guide link. I have one more question, does ROS Noetic and ROS 2 Humble work on Ubuntu 20?

Robo_guy gravatar image Robo_guy  ( 2022-12-31 20:42:54 -0600 )edit

ROS Noetic works on Ubuntu 20.04. ROS 2 Humble only works on 22.04. ROS 2 Foxy and ROS 2 Galactic work on Ubuntu 20.04, but Galactic just went end-of-life on December 9th.

ROS 1 Distros

ROS 2 Distros

robustify gravatar image robustify  ( 2023-01-01 10:21:55 -0600 )edit

Ok got it, thank you for answering all my questions and providing the links for ROS 1 and ROS 2 version distributions.

Robo_guy gravatar image Robo_guy  ( 2023-01-01 14:45:21 -0600 )edit

Hello @Robo_guy, Regarding this project, how did it evolve. I actually find myself in the same situation. I had a Ubuntu 18 with ROS Melodic and migrated my workspace to a Ubuntu 20.04 with Ros Noetic machine. Minor issues with Python 2 and Python 3 came up. I am now looking to update to ROS 2 and am hesitating whether to go for: 1) Ubuntu 20.04+ROS2 Foxy(+ROS1 Noetic) - conservative approach with EoL in June 2023 OR 2) Ubuntu 22.04+ROS2 Humble - bolder approach

Cervalls gravatar image Cervalls  ( 2023-07-19 08:36:30 -0600 )edit
1

Hi @Cervalls, it depends, I needed to upgrade since the ROS2 version supported on melodic at reached EOL and the projects I am working on require ROS 1 Noetic and ROS2 Foxy. Regarding your decision, you should see if you are going to need ROS 1 or only ROS2. If you are going to need only ROS 2 then go with Ubuntu 22.04+ROS2 Humble but if your work will involve using both ROS 1 and ROS 2 then go for Ubuntu 20.04+ROS2 Foxy(+ROS1 Noetic)

Robo_guy gravatar image Robo_guy  ( 2023-07-21 15:31:15 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2022-12-30 23:53:36 -0600

Seen: 972 times

Last updated: Dec 31 '22