ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

What happened if I install two version of ROS?

asked 2011-07-20 01:41:53 -0600

sam gravatar image

updated 2014-01-28 17:10:04 -0600

ngrennan gravatar image

Because I found that the latest version of ROS is coming(electric).

If I want to try that version,but also use the origin version of ROS.

Is they will conflict?

Or should I just upgrade to the latest version?

I have tried 'sudo apt-get dist-upgrade'. Is this instruction will check any version of ROS could be update? And if not,it just upgrade all the other packages?

Thank you~

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2011-07-20 02:43:55 -0600

AHornung gravatar image

Your ROS installations won't interfere with each other, if using the precompiled .deb packages or installing from source into different directories. E.g. diamondback will install into /opt/ros/diamondback, whereas electric will install into /opt/ros/e-turtle (or "electric", whatever the actual directory will be). Once you source one "setup.bash" you will run (and compile) in that ROS version only.

So, apt-get dist-upgrade will not upgrade your ROS installation into a new distribution as the package prefixes are different.

edit flag offensive delete link more


If I want to change versions,I just run the correct setup.bash file without other steps,right?
sam gravatar image sam  ( 2011-07-20 03:50:19 -0600 )edit
Yes. Your code might not be compatible to both, though.
dornhege gravatar image dornhege  ( 2011-07-20 04:32:29 -0600 )edit

answered 2011-07-20 02:40:04 -0600

In principle you can have multiple versions installed at the same time and this will work, as long as you take care that you only use one version (and packages for that version) at any time. This means the ROS_PACKAGE_PATH, setup.bash and everything else of only the ROS version you want to use might be active. Making a mistake here can lead to all sorts of errors. It's recommended to use only one version (a stable one) though, unless you have special needs.

edit flag offensive delete link more


What kind of mistake will lead to all sorts of errors? Thank you~
sam gravatar image sam  ( 2011-07-20 03:48:57 -0600 )edit
For example having a PACKAGE_PATH that accidentally contains packages for another distribution than the one you have defined in your setup.bash file.
Stefan Kohlbrecher gravatar image Stefan Kohlbrecher  ( 2011-07-20 06:10:09 -0600 )edit

answered 2011-07-20 02:22:55 -0600

I recommend you to continue learning with the current diamondback release and don't change until electric is stable.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2011-07-20 01:41:53 -0600

Seen: 3,636 times

Last updated: Jul 20 '11