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

sourcing setup.bash does not work in galactic

asked 2021-10-04 15:52:19 -0500

feri73 gravatar image


So I installed ros2 galactic using the installation instructions, but when I use source /opt/ros/galactic/setup.bash it does not work, e.g. ros2 command is not found. That being said, when I use . ~/ros2_galactic/ros2-linux/setup.bash (mentioned in the installation instructions), it does do what it's supposed to do. Please help me!

Thank you

edit retag flag offensive close merge delete


Which installation instructions did you follow?

Geoff gravatar image Geoff  ( 2021-10-04 17:41:16 -0500 )edit
feri73 gravatar image feri73  ( 2021-10-04 17:46:49 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2021-10-04 23:06:00 -0500

Geoff gravatar image

As the instructions you followed say, when installing from a pre-built binary tarball you have to use source ~/ros2_galactic/ros2-linux/setup.bash to activate ROS. It has been installed to ~/ros2_galactic. If you want it installed in /opt/ros then you need to follow these instructions to install using Debian packages. This works on Ubuntu, despite the name of the package format.

edit flag offensive delete link more

Question Tools



Asked: 2021-10-04 15:27:16 -0500

Seen: 679 times

Last updated: Oct 04 '21