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

Unmet dependencies: ros-kinetic-gazebo-ros-control : Depends: ros-kinetic-gazebo-ros but it is not going to be installed

asked 2018-10-25 21:18:04 -0600

Jophiel gravatar image

updated 2018-10-25 21:18:28 -0600

I am using Ubuntu 16.04 ROS kinetic. Trying to install gazebo_ros pkgs, but gets the following error.

J@VRL:~/catkin_ws$ sudo apt-get install ros-kinetic-gazebo-ros-pkgs ros-kinetic-gazebo-ros-control

Reading package lists... Done
Building dependency tree       
Reading state information... Done
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-kinetic-gazebo-ros-control : Depends: ros-kinetic-gazebo-ros but it is not going to be installed
 ros-kinetic-gazebo-ros-pkgs : Depends: ros-kinetic-gazebo-dev but it is not going to be installed
                               Depends: ros-kinetic-gazebo-plugins but it is not going to be installed
                               Depends: ros-kinetic-gazebo-ros but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
edit retag flag offensive close merge delete

Comments

you have to install ros-kinetic_gazebo-ros, ros-kinetic-gazebo-plugins, ros-kinetic-gazebo-dev before installing the packages you trying to install.

Choco93 gravatar image Choco93  ( 2018-10-26 01:35:39 -0600 )edit
2

@Choco93: that is quite a statement. Dependency resolution should do this automatically for you, but for some reason that is not happening for @Jophiel. Doing this manually is at best a work-around.

@Jophiel: can you try to use aptitude instead of apt-get? It may give a better error message.

gvdhoorn gravatar image gvdhoorn  ( 2018-10-26 04:43:05 -0600 )edit
1

Is this issue solved. I am facing the same problem and unable to find a solution.

Hari_prasanth gravatar image Hari_prasanth  ( 2019-11-04 02:48:52 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-06-14 05:54:29 -0600

apal gravatar image

First uninstall the default Gazebo-

$ sudo apt-get remove ros-<ros_version>-gazebo*

$ sudo apt-get remove libgazebo*

$ sudo apt-get remove gazebo*

Update the repository-

$ sudo sh -c 'echo "deb http://packages.osrfoundation.org/gaz... lsb_release -cs main" > /etc/apt/sources.list.d/gazebo-stable.list'

$ wget http://packages.osrfoundation.org/gaz... -O - | sudo apt-key add -

$ sudo apt-get update

Install Gazebo-

$ sudo apt-get install ros-melodic-gazebo-ros-pkgs ros- 'ROS_VERSION' -gazebo-ros-control

in my case- ROS_VERSION = melodic

$ sudo apt-get install ros-melodic-gazebo-ros-pkgs ros-melodic-gazebo-ros-control

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-10-25 21:18:04 -0600

Seen: 3,370 times

Last updated: Oct 25 '18