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

Revision history [back]

click to hide/show revision 1
initial version

It's essentially just an environment variable, so an export ROS_DISTRO=... should work.

But: you shouldn't (need to) change it, as it's automatically set by the setup.bash scripts that are in the root of the ROS install directory.

It would be best if you can try to find out why that variable is being set (ie: by which file).

Looking through your .bashrc is indeed a good idea. Check for lines starting with source /opt/... or source /some/path/in/hour/home_dir. It could also be that you have a line already that sets the variable. Look for export ROS_DISTRO=....

Whatever you do, it's infinitely better to figure out where that variable is getting set than to try and change its value manually.

It's essentially just an environment variable, so an export ROS_DISTRO=... should work.

But: you shouldn't (need to) change it, as it's automatically set by the setup.bash scripts that are in the root of the ROS install directory.

It would be best if you can try to find out why that variable is being set (ie: by which file).

Looking through your .bashrc is indeed a good idea. Check for lines starting with source /opt/... or source /some/path/in/hour/home_dir. It could also be that you have a line already that sets the variable. Look for export ROS_DISTRO=....

Whatever you do, it's infinitely better to figure out where that variable is getting set than to try and change its value manually.


I had hydro installed on my raspberry pi earlier, then i removed it to install kinetic, everything seemed to be fine except the ROS_DISTRO variable.

Just to make sure:

  • what OS is this (Debian?)
  • you "had hydro" before, now Kinetic: Hydro and Kinetic do not have overlapping install targets: did you upgrade your OS for that?
  • how did you install ROS? Seeing as you have a RPi: from sources? Or .debs?