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

Error in installing MoveIt

asked 2022-06-15 00:58:35 -0500

Aman_jdl gravatar image

updated 2022-06-16 01:52:15 -0500

gvdhoorn gravatar image

I’m trying to install moveIt packagein ROS1 using the command:

sudo apt-get install ros-melodic-moveit

But getting an error. You can see the Image below

$ sudo apt install ros-melodic-moveit
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-melodic-moveit : Depends: ros-melodic-moveit-ros but it is not going to be installed
                      Depends: ros-melodic-moveit-setup-assistant 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

2 Answers

Sort by » oldest newest most voted
1

answered 2022-06-16 16:44:30 -0500

Mike Scheutzow gravatar image

It says you have "held" packages. This means that sometime in the past you told apt it was not allowed to update some apps and/or libraries. You can see the list of held packages using:

apt-mark showhold

For each package name listed, you need to undo the hold using:

sudo apt-mark unhold <pkg-name>

Then retry your original apt-get command.

edit flag offensive delete link more

Comments

This isn't related to the question but out of my own curiosity. I have seen numeral errors when someone installs ROS for the first time and it states that he/she has held broken packages when it's his/her first time installing. Do you know why does it say that?

qilin_gundamenjoyer gravatar image qilin_gundamenjoyer  ( 2022-06-16 18:50:08 -0500 )edit

For libraries, ros expects that you have a "vanilla" ubuntu system i.e. official files only. If you added extra repositories to the list of sites that apt downloads from, you can end up with conflicting or unexpected versions of libraries on your system. This may then cause the install of a ros package to fail.

Mike Scheutzow gravatar image Mike Scheutzow  ( 2022-06-16 19:40:56 -0500 )edit

Oh, makes sense. Thanks!

qilin_gundamenjoyer gravatar image qilin_gundamenjoyer  ( 2022-06-16 19:56:24 -0500 )edit
0

answered 2022-06-15 20:09:40 -0500

qilin_gundamenjoyer gravatar image

You can try sudo apt-get install ros-melodic-moveit-ros and sudo apt-get install ros-melodic-moveit-setup-assistant individually first. After that, see if sudo apt-get install ros-melodic-moveit works. If it doesn't, do sudo apt update and rosdep update to make sure the package and dependencies are updated to the latest version. If it still doesn't work after that. sudo apt-get remove ros-melodic-moveit and reinstall it again.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2022-06-15 00:54:20 -0500

Seen: 364 times

Last updated: Jun 16 '22