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

Installing both Noetic and Mellodic in 20.04?

asked 2022-09-29 05:59:28 -0600

Nu99RI gravatar image

First, I am a beginner of ROS.

I installed Ubuntu 20.04 on my desktop and now I installed noetic on it since they are used in my project team.

However, in my another class, they recommended to install mellodic with Ubuntu 18.04

I found there are some differences between Noetic and Mellodic such as the Python version, catkin_make version etc.

So, I tried to install both Noetic and Mellodic in 20.04 but following error was shown in installing tutorial

$ sudo apt install ros-melodic-desktop-full
E: Unable to locate package ros-melodic-desktop-full

I double checked that I followed the tutorial well.

There were some answers for similar situations but now I'm worried that those solutions might have a negative effect on Melodics.

So, my question is..

  1. Do you recommend installing both Noetic and Melodic in Ubuntu 20.04?

  2. If not, which version do you recommend to install if you had the same situation as me?

  3. If yes, how can I solve the above error?

I'm not sure this is right place to ask this kind of question

Thank you

my gcc version : gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 my ubuntu bersion : Ubuntu 20.04.4 LTS

edit retag flag offensive close merge delete

Comments

1

What does "install" mean here exactly?

Build from source? Install using apt? Something else?

The direct answer would be: Melodic and Noetic cannot be installed next to each other, as there is no single OS for which binary packages are available for both ROS versions (ie: there is no version of Ubuntu for which binary packages of both Melodic and Noetic exist).

gvdhoorn gravatar image gvdhoorn  ( 2022-09-30 01:02:58 -0600 )edit

I meant using apt. Thank you for your replying!

Nu99RI gravatar image Nu99RI  ( 2022-10-01 03:22:20 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-10-01 03:25:18 -0600

gvdhoorn gravatar image

As I wrote in my comment: installing both Melodic and Noetic on the same Debian/Ubuntu OS version is not supported, as there are no binary packages available for those ROS versions which support the same Debian Ubuntu version.

If/when people need to run Melodic on Ubuntu Focal (which only supports Noetic), I've seen Docker or other container approaches (such as Singularity, or LXC) used.

A from-source build could work, but it's not going to be a smooth experience, and is not something I would recommend to someone just starting out with ROS.

edit flag offensive delete link more

Comments

maybe Docker can be used. Thanks a lot!

Nu99RI gravatar image Nu99RI  ( 2022-10-01 03:35:38 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2022-09-29 05:59:28 -0600

Seen: 560 times

Last updated: Oct 01 '22