installing ROS and getting E: Unable to correct problems, you have held broken packages

asked 2019-03-10 14:23:48 -0500

resolver101757 gravatar image

updated 2019-03-11 14:46:49 -0500

gvdhoorn gravatar image

Hello I'm trying to install ros by using sudo apt-get install ros-indigo-turtlebot-gazebo. I the following error

E: Unable to correct problems, you have held broken packages

i ran the follow to get a full diagnostics command

sudo apt-get install -f -o Debug::pkgProblemResolver=yes ros-indigo-turtlebot ros-indigo-turtlebot-apps ros-indigo-turtlebot-interactions ros-indigo-turtlebot-simulator ros-indigo-kobuki-ftdi ros-indigo-rocon-remocon ros-indigo-rocon-qt-library ros-indigo-ar-track-alvar-msgs > allout.txt 2>&1

and listed it below. Anyone anyideas how to resolve this?

I've tried :

sudo apt-get update
sudo apt-get install -f
sudo apt-get dist-upgrade
sudo aptitude install libsdformat1
sudo apt-get clean
sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get update

And I get:

Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Starting pkgProblemResolver with broken count: 49
Starting 2 pkgProblemResolver with broken count: 49
Investigating (0) ros-indigo-turtlebot-apps [ amd64 ] < none -> 2.3.7-0trusty-20181203-144534-0800 > ( misc )
Broken ros-indigo-turtlebot-apps:amd64 Depends on ros-indigo-turtlebot-actions [ amd64 ] < none -> 2.3.7-0trusty-20181203-143111-0800 > ( misc )
  Considering ros-indigo-turtlebot-actions:amd64 1 as a solution to ros-indigo-turtlebot-apps:amd64 9998
    Reinst Failed early because of libboost-system1.54.0:amd64
Broken ros-indigo-turtlebot-apps:amd64 Depends on ros-indigo-turtlebot-follower [ amd64 ] < none -> 2.3.7-0trusty-20181203-143940-0800 > ( misc )
  Considering ros-indigo-turtlebot-follower:amd64 2 as a solution to ros-indigo-turtlebot-apps:amd64 9998
    Reinst Failed early because of libboost-system1.54.0:amd64
Broken ros-indigo-turtlebot-apps:amd64 Depends on ros-indigo-turtlebot-navigation [ amd64 ] < none -> 2.3.7-0trusty-20181203-143033-0800 > ( misc )
  Considering ros-indigo-turtlebot-navigation:amd64 5 as a solution to ros-indigo-turtlebot-apps:amd64 9998
    Reinst Failed early because of libboost-system1.54.0:amd64
Investigating (0) ros-indigo-turtlebot-interactions [ amd64 ] < none -> 2.3.1-0trusty-20181203-144250-0800 > ( misc )
Broken ros-indigo-turtlebot-interactions:amd64 Depends on ros-indigo-turtlebot-interactive-markers [ amd64 ] < none -> 2.3.1-0trusty-20181203-143359-0800 > ( misc )
  Considering ros-indigo-turtlebot-interactive-markers:amd64 1 as a solution to ros-indigo-turtlebot-interactions:amd64 9998
    Reinst Failed early because of libboost-system1.54.0:amd64
Investigating (0) ros-indigo-turtlebot [ amd64 ] < none -> 2.3.14-0trusty-20181203-143929-0800 > ( misc )
Broken ros-indigo-turtlebot:amd64 Depends on ros-indigo-turtlebot-teleop [ amd64 ] < none -> 2.3.14-0trusty-20181203-143643-0800 > ( misc )
  Considering ros-indigo-turtlebot-teleop:amd64 3 as a solution to ros-indigo-turtlebot:amd64 9998
    Reinst Failed early because of libboost-system1.54.0:amd64
Investigating (0) ros-indigo-message-runtime [ amd64 ] < none -> 0.4.12-0trusty-20170313-053614-0700 > ( misc )
Broken ros-indigo-message-runtime:amd64 Depends on ros-indigo-cpp-common [ amd64 ] < none -> 0.5.8-0trusty-20170312-160318-0700 > ( misc )
  Considering ros-indigo-cpp-common:amd64 4 as a solution to ros-indigo-message-runtime:amd64 87
  Holding Back ros-indigo-message-runtime:amd64 rather than change ros-indigo-cpp-common:amd64
Investigating (0) ros-indigo-rospy [ amd64 ] < none -> 1.11.21-0trusty-20170313-090637-0700 > ( misc )
Broken ros-indigo-rospy:amd64 Depends on ros-indigo-roscpp [ amd64 ] < none -> 1.11.21-0trusty-20170313-084908-0700 > ( misc )
  Considering ros-indigo-roscpp:amd64 5 as a solution to ros-indigo-rospy:amd64 62
  Holding Back ros-indigo-rospy:amd64 rather than change ros-indigo-roscpp:amd64
Investigating (0) ros-indigo-rosgraph-msgs [ amd64 ] < none -> 1.11.2-0trusty-20170313-084650-0700 > ( misc )
Broken ros-indigo-rosgraph-msgs:amd64 Depends on ros-indigo-message-runtime [ amd64 ] < none -> 0.4.12-0trusty-20170313-053614-0700 > ( misc )
  Considering ros-indigo-message-runtime:amd64 87 as a solution to ros-indigo-rosgraph-msgs:amd64 43
  Holding Back ros-indigo-rosgraph-msgs:amd64 rather than change ros-indigo-message-runtime:amd64
Investigating (0) ros-indigo-roscpp-traits [ amd64 ] < none -> 0.5.8-0trusty-20170312-162039-0700 > ( misc )
Broken ros-indigo-roscpp-traits:amd64 Depends on ros-indigo-cpp-common [ amd64 ] < none -> 0.5.8-0trusty-20170312-160318-0700 > ( misc )
  Considering ros-indigo-cpp-common:amd64 4 as a solution to ros-indigo-roscpp-traits:amd64 27
  Holding Back ros-indigo-roscpp-traits:amd64 rather than change ros-indigo-cpp-common:amd64
Investigating (0) ros-indigo-roscpp-serialization [ amd64 ] < none -> 0.5.8-0trusty-20170313-050949-0700 > ( misc )
Broken ros-indigo-roscpp-serialization:amd64 Depends on ros-indigo-cpp-common [ amd64 ] < none -> 0.5.8-0trusty-20170312-160318-0700 > ( misc )
  Considering ros-indigo-cpp-common ...
(more)
edit retag flag offensive close merge delete

Comments

3

Many thanks for including the full error/output (and not posting screenshots), but please do not use blockquote for it. It completely messes up the formatting and reflows the text, rendering the apt output nearly unreadable.

if you have the option, please edit your question and replace the text with a fresh copy-paste and use the Preformatted Text button instead (the one with 101010 on it).

gvdhoorn gravatar image gvdhoorn  ( 2019-03-10 16:16:17 -0500 )edit

Also: please tell us which OS this is and which version. You also tagged this with cturtle, which is a ROS version from 2010. I doubt you're working with that.

gvdhoorn gravatar image gvdhoorn  ( 2019-03-10 16:18:17 -0500 )edit

Finally: we see this in the output:

 Reinst Failed early because of libboost-system1.54.0:amd64

Do you have a newer version of Boost installed? Possibly from a PPA or as part of another program that needs the newer version? That could cause this issue.

gvdhoorn gravatar image gvdhoorn  ( 2019-03-10 16:19:10 -0500 )edit

Thanks for the tip on posting questions - I'll edit it when i get home when i have access to my ROS pc. Its Ubuntu 14.04. Your right, im working working with ros indigo, not cturtle. In terms of boost, should i install a older version? I found this post on stack exchange https://stackoverflow.com/questions/1... to install a older version.

resolver101757 gravatar image resolver101757  ( 2019-03-11 10:10:51 -0500 )edit

The default libboost for Ubuntu Trusty is libboost-dev_1.54.0.1ubuntu1. If you have that, it should be OK. If you don't have that version, the ROS binary packages provided by the buildfarm will not install.

I was just wondering whether you have some other conflicting version installed. It could be a red-herring.

gvdhoorn gravatar image gvdhoorn  ( 2019-03-11 10:50:56 -0500 )edit