# How to fix ros2 humble broken packages

**URL:** <https://get-help.theconstruct.ai/t/how-to-fix-ros2-humble-broken-packages/29525>\
**Category:** Open Discussions\
**Tags:** broken-packages, ros2-humble, error, ros2\
**Created:** [March 19, 2024, 6:24pm UTC](https://get-help.theconstruct.ai/t/how-to-fix-ros2-humble-broken-packages/29525 "2024-03-19T18:24:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rshailly](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/rshailly/32/8432_2.png) [@rshailly](https://get-help.theconstruct.ai/u/rshailly)\
**Post date:** [March 19, 2024, 6:24pm UTC](https://get-help.theconstruct.ai/t/how-to-fix-ros2-humble-broken-packages/29525/1 "2024-03-19T18:24:59Z")

</div>

I recently installed ros humble in my linux and some of the simple commands were not working such as

- ros2 topic list
- ros2 node list

when I ran the upgrage ros command (sudo apt upgrade ros-humble-\*), I got the following error:

 ![image](https://get-help.theconstruct.ai/uploads/default/original/2X/5/5a489292cdb4013ed469d4b84cafe27b404dab8c.png)

Does anyone know how to fix these broken packages?

---

<div class="post-metadata">

**Author:** ![ralves](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/ralves/32/7039_2.png) [@ralves](https://get-help.theconstruct.ai/u/ralves)\
**Post date:** [March 19, 2024, 6:54pm UTC](https://get-help.theconstruct.ai/t/how-to-fix-ros2-humble-broken-packages/29525/2 "2024-03-19T18:54:14Z")

</div>

Hi @rshailly,

One of the messages says that `ros-humble-ros-gzharmonic-bridge` conflicts with `ros-humble-ros-gz-bridge`.

If you remove the installed package that is causing the issue, the problem may be solved for this specific error.

Another possible solution is to remove ROS Humble completely and install it from zero. This way, you would get the latest packages.

Just be careful if removing ROS Humble completely, to avoid removing basic dependencies.

By the way, if you want to know the package that you have installed, just use _ **dpkg -l** _ to list the installed packages, and use _ **grep** _ to search the package installed.

Example:

```auto
sudo dpkg -l | grep ros-humble-ros-gz

```

---

<div class="post-metadata">

**Author:** ![rshailly](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/rshailly/32/8432_2.png) [@rshailly](https://get-help.theconstruct.ai/u/rshailly)\
**Post date:** [March 19, 2024, 11:21pm UTC](https://get-help.theconstruct.ai/t/how-to-fix-ros2-humble-broken-packages/29525/3 "2024-03-19T23:21:00Z")

</div>

Hi @ralves,

thank you for your prompt reply. As you advised, I removed and installed ROS completely. The error was gone after restarting the computer post ROS installation.

Thank you!

---

<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 26, 2024, 11:21pm UTC](https://get-help.theconstruct.ai/t/how-to-fix-ros2-humble-broken-packages/29525/4 "2024-03-26T23:21:49Z")

</div>

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