# ROS\_DISTRO was set to 'galactic' before

**URL:** <https://get-help.theconstruct.ai/t/ros-distro-was-set-to-galactic-before/35217>\
**Category:** ROS2 Navigation Advanced\
**Tags:** error\
**Created:** [March 6, 2025, 5:14pm UTC](https://get-help.theconstruct.ai/t/ros-distro-was-set-to-galactic-before/35217 "2025-03-06T17:14:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![IvanMurataya](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/ivanmurataya/32/9348_2.png) [@IvanMurataya](https://get-help.theconstruct.ai/u/IvanMurataya)\
**Post date:** [March 6, 2025, 5:14pm UTC](https://get-help.theconstruct.ai/t/ros-distro-was-set-to-galactic-before/35217/1 "2025-03-06T17:14:25Z")

</div>

While working on Unit 2 of Advanced Navigation, I encountered multiple issues related to environment setup and launching navigation components.

```
Sourcing setup.bash results in environment conflict:

```

```auto
ROS_DISTRO was set to 'galactic' before. Please make sure that the environment does not mix paths from different distributions.
ROS_DISTRO was set to 'noetic' before. Please make sure that the environment does not mix paths from different distributions.

```

This suggests a conflict between ROS1 (Noetic) and ROS2 (Galactic) environment variables.

Launching navigation.launch fails:

`[ERROR] [map_server-1]: process has died [pid 1447, exit code 127, cmd '/opt/ros/galactic/lib/nav2_map_server/map_server --ros-args -r__node:=map_server --params-file /tmp/launch_params_gu9tv2xa --params-file /tmp/launch_params_kdiu83qx'].`

Running teleop\_twist\_keyboard results in message type error:

```auto
Traceback (most recent call last):
File "/opt/ros/galactic/lib/teleop_twist_keyboard/teleop_twist_keyboard", line 11, in <module>
  load_entry_point('teleop-twist-keyboard==2.3.2', 'console_scripts', 'teleop_twist_keyboard')()
...
AttributeError: type object 'type' has no attribute '_TYPE_SUPPORT' This might be a ROS 1 message type but it should be a ROS 2 message type. Make sure to source your ROS 2 workspace after your ROS 1 workspace.

```

This might be due to an improper sourcing order between ROS1 and ROS2 workspaces.

---

<div class="post-metadata">

**Author:** ![bayodesegun](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/bayodesegun/32/10684_2.png) [@bayodesegun](https://get-help.theconstruct.ai/u/bayodesegun)\
**Post date:** [March 7, 2025, 10:58am UTC](https://get-help.theconstruct.ai/t/ros-distro-was-set-to-galactic-before/35217/2 "2025-03-07T10:58:00Z")

</div>

> [@IvanMurataya](#):
>
> ```auto
> ROS_DISTRO was set to 'galactic' before. Please make sure that the environment does not mix paths from different distributions.
> ROS_DISTRO was set to 'noetic' before. Please make sure that the environment does not mix paths from different distributions.
> 
> ```

This specific warning is common and usually harmless. It is unlikely that this is the actual problem. Perhaps you are running the wrong command?

To help further,

- please ensure you did not skip any part of the notebook (from the top)
- let us know the specific point in the notebook where you ran into this error
- please share a full screenshot showing the error on the terminal, and the exact command you ran

---

<div class="post-metadata">

**Author:** ![system](https://get-help.theconstruct.ai/uploads/default/original/2X/9/9d3ce8305cc0d0d9b6e07d15767a6f245c526f1b.jpeg) [@system](https://get-help.theconstruct.ai/u/system)\
**Post date:** [March 12, 2025, 10:58am UTC](https://get-help.theconstruct.ai/t/ros-distro-was-set-to-galactic-before/35217/3 "2025-03-12T10:58:09Z")

</div>

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
