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

ros-melodic-husky-gazebo

asked 2022-03-14 13:46:29 -0500

Cel gravatar image

updated 2022-03-15 08:49:37 -0500

Hello,

I am trying to install ros-melodic-husky-simulator on my Ubuntu 18.04 computer. I got the following output:

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

The following information may help to resolve the situation:

The following packages have unmet dependencies:
 ros-melodic-husky-simulator : Depends: ros-melodic-husky-gazebo but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Does anyone know how to solve this issue?

Thank you very much for your help!

Cheers, Celine

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-03-15 10:36:08 -0500

ljaniec gravatar image

Can you try to install it by sudo apt-get install ros-melodic-husky-gazebo?

You can try to use this tutorial to find and fix broken packages (if this is OS problem). From the article:

To fix broken packages on Debian-based distributions using APT:

  1. Open the terminal and enter: sudo apt --fix-missing update
  2. Update your system's package list from the available sources: sudo apt update
  3. Now, force the installation of the broken packages using the -f flag. APT will automatically search for broken packages on your system and reinstall them from the official repository: sudo apt install -f

If the aforementioned steps do not work for you, then you can try to solve the issue using dpkg.

  1. Force dpkg to reconfigure all the pending packages that are already unpacked but need to undergo configuration: sudo dpkg --configure -a

  2. Use the --remove flag to delete all the broken packages: sudo dpkg --remove --force-remove-reinstreq

  3. Clean up the package cache and install scripts using apt clean: sudo apt clean
  4. Now, update your system's package lists using the following command: sudo apt update

If it doesn't help, you can try to use rosdep (sudo apt-get install python-rosdep) to install missing dependencies (ROS Wiki there):

Go to the top directory of your catkin workspace where the source code of the ROS packages you'd like to use are. Then run:

rosdep install --from-paths src --ignore-src -r -y

This command "magically" installs all the packages that the packages in your catkin workspace depend upon but are missing on your computer.

You should remember to configure your Ubuntu repositories to allow restricted, universe, and multiverse too (maybe you missed this step without noticing during installation).

edit flag offensive delete link more

Question Tools

Stats

Asked: 2022-03-14 13:46:29 -0500

Seen: 160 times

Last updated: Mar 15 '22