Ubuntu 16.04 Ros Kinect Installation Unmet Dependencies
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:
- Ubuntu repositories of mine do include all three which you think of. I tried other countries' repositories as well, no luck.
- 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 ...
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.aptitude
instead ofapt
orapt-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 installkinetic-desktop-full
it runs into that situation and can't resolve it.@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.
@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?Do you already have some ROS packages installed? Did you ever install any upstream packages? What is the output of
dpkg -l | grep catkin
andapt-cache search python-catkin-pkg
?First command returns nothing, the second command returns
python-catkin-pkg - Low-level build system macros for Robot OS -- Python module
andpython-catkin-pkg-modules - catkin package library
although I did do remove now, and it says it wasn't even there. Something is weird.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.
Package 'python-catkin-pkg' is not installed, so not removed
andpython-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.