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

Ubuntu 16.04 Ros Kinect Installation Unmet Dependencies

asked 2018-10-10 08:52:37 -0600

Jägermeister gravatar image

updated 2018-10-11 07:41:56 -0600

I tried literally every solution found on this website and beyond - no luck. Whatever I did, the installation just wouldn't work. Running this:

sudo apt-get install ros-kinetic-desktop-full

always and always results with:

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-desktop-full : Depends: ros-kinetic-desktop but it is not going to be installed
                            Depends: ros-kinetic-perception but it is not going to be installed
                            Depends: ros-kinetic-simulators but it is not going to be installed
                            Depends: ros-kinetic-urdf-tutorial but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Before someone tells:

  1. Ubuntu repositories of mine do include all three which you think of. I tried other countries' repositories as well, no luck.
  2. Installing qt binding also did not work. I did remove qt5 library and I am still unable to install ROS.

Any thoughts?

EDIT:

python-catkin-pkg:
  Installed: (none)
  Candidate: 0.2.10-2
  Version table:
     0.4.8-100 500
        500 http://packages.ros.org/ros/ubuntu xenial/main amd64 Packages
        500 http://packages.ros.org/ros/ubuntu xenial/main i386 Packages
     0.2.10-2 1001
       1001 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
       1001 http://archive.ubuntu.com/ubuntu xenial/universe i386 Packages
python-catkin-pkg-modules:
  Installed: (none)
  Candidate: 0.4.8-1
  Version table:
     0.4.8-1 500
        500 http://packages.ros.org/ros/ubuntu xenial/main amd64 Packages
        500 http://packages.ros.org/ros/ubuntu xenial/main i386 Packages

EDIT2: Even after removing the package which caused the mess, I still cannot install ROS with the standard command. I did do aptitude and this is the output:

Need to get 106 MB of archives. After unpacking 576 MB will be used.
The following packages have unmet dependencies:
 ros-kinetic-urdf-parser-plugin : Depends: liburdfdom-headers-dev which is a virtual package and is not provided by any available package.

 ros-kinetic-eigen-stl-containers : Depends: libeigen3-dev which is a virtual package and is not provided by any available package.

 ros-kinetic-geometric-shapes : Depends: libassimp3v5 which is a virtual package and is not provided by any available package.

                                Depends: libconsole-bridge0.2v5 which is a virtual package and is not provided by any available package.

                                Depends: libqhull7 which is a virtual package and is not provided by any available package.

                                Depends: libassimp-dev which is a virtual package and is not provided by any available package.

                                Depends: libconsole-bridge-dev which is a virtual package and is not provided by any available package.

                                Depends: libeigen3-dev which is a virtual package and is not provided by any available package.

                                Depends: libqhull-dev which is a virtual package and is not provided by any available package.

 ros-kinetic-roslisp : Depends: sbcl which is a virtual package and is not provided by any available package.

 ros-kinetic-rqt-pose-view : Depends: python-opengl which is a virtual ...
(more)
edit retag flag offensive close merge delete

Comments

There is probably a better option, but my goto is to try sudo apt-get install ros-kinetic-perception, etc. That lists the unmet dependencies of those projects, and continuing down that trail will usually lead to the root problem.

BryceWilley gravatar image BryceWilley  ( 2018-10-10 09:17:26 -0600 )edit
2

aptitude instead of apt or apt-get may have a more informative error.

In most cases, you already have a newer version of a package installed that is a dependency of a ROS package. Now by asking apt to install kinetic-desktop-full it runs into that situation and can't resolve it.

gvdhoorn gravatar image gvdhoorn  ( 2018-10-10 13:32:43 -0600 )edit

@BryceWilley That would take hours to resolve. Even at the first level there are 4-5 branches, each of these branches again into another 4-5 and so on. I am looking for an intelligent way of solving this.

Jägermeister gravatar image Jägermeister  ( 2018-10-11 04:02:40 -0600 )edit

@gvdhoorn I tried that and here is the message I get The following packages have unmet dependencies: ros-kinetic-catkin : Depends: python-catkin-pkg (> 0.4.3) but 0.2.10-2 is to be installed.. So in this case, what action should be taken? Removing the package, or?

Jägermeister gravatar image Jägermeister  ( 2018-10-11 05:08:01 -0600 )edit

Do you already have some ROS packages installed? Did you ever install any upstream packages? What is the output of dpkg -l | grep catkin and apt-cache search python-catkin-pkg?

gvdhoorn gravatar image gvdhoorn  ( 2018-10-11 06:34:47 -0600 )edit

First command returns nothing, the second command returns python-catkin-pkg - Low-level build system macros for Robot OS -- Python module and python-catkin-pkg-modules - catkin package library although I did do remove now, and it says it wasn't even there. Something is weird.

Jägermeister gravatar image Jägermeister  ( 2018-10-11 06:37:05 -0600 )edit

Please add the full output of apt-cache policy python-catkin-pkg python-catkin-pkg-modules. We need to know what versions are available to install and where they come from.

Edit your original question, do not post a comment.

gvdhoorn gravatar image gvdhoorn  ( 2018-10-11 06:43:35 -0600 )edit

Package 'python-catkin-pkg' is not installed, so not removed and python-catkin-pkg - Low-level build system macros for Robot OS -- Python module coexist for some weird reason. Jesus Christ it shouldn't be this hard to install ROS. Edited my original question BTW @gvdhoorn.

Jägermeister gravatar image Jägermeister  ( 2018-10-11 06:43:42 -0600 )edit

3 Answers

Sort by » oldest newest most voted
2

answered 2018-10-11 09:01:55 -0600

gvdhoorn gravatar image

At least for python-catkin-pkg and python-catkin-pkg-modules it turned out that the OP had a allow-downgrade file in /etc/apt/preferences.d/ that pinned the priority of all Ubuntu repositories (ie: official ones) to 1001.

As python-catkin-pkg is also provided by the Ubuntu repositories (via Debian and the UpstreamPackages), the higher priority of the Ubuntu repositories caused apt to only want to install the 0.2.10-2 version and not the most recent one (at this point in time: 0.4.8-100).

Removing the allow-downgrade file at least resolved the python-catkin-pkg problem, but additional issues with apt then popped up.

edit flag offensive delete link more

Comments

1

Yes. I'd like to also add that it's still unclear at this point what actually causes the problem, but one should acknowledge that it is clearly not a ROS problem, rather an Ubuntu problem. Thank you for effort again.

Jägermeister gravatar image Jägermeister  ( 2018-10-11 09:32:50 -0600 )edit
0

answered 2018-11-19 14:40:24 -0600

David Lu gravatar image

If someone else wanders in here, I fixed the problem by upgrading dpkg (sudo apt-get upgrade) and then trying to reinstall.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-10-10 08:52:37 -0600

Seen: 2,089 times

Last updated: Nov 19 '18