ROS Installation error ( ROS Kinetic in Ubuntu 16.04 )

Viewed 11824

The sequence of steps listed in http://wiki.ros.org/kinetic/Installat... have been followed. (Trying to install ROS kinetic in Ubuntu 16.04) Error when entering the following command :

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

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.

8 Answers

sudo aptitude install ros-kinetic-desktop-full

aptitude will display solutions to the unmet dependencies. Just keep hitting 'n' until you get one that installs ros (without wiping out something you need).

aptitude vs apt-get -the way software should function.

I solved the problem by installing ros-kinetic-desktop first, and then ros-kinetic-desktop-full.

Recently I have reinstalled my system (Ubuntu/Lubuntu 16.04) and then ROS several times. As I can remember, installing only ros-kinetic-desktop never cause any problem, but installing ros-kinetic-desktop-full always throw "no catkin_pkg error" when I invoking catkin_make. (It can be solved by pip install catkin_pkg.)

This time I installed ros-kinetic-desktop-full in LXLE (based on Lubuntu 16.04) and got the "unmet dependencies error". I solved it as mentioned at the beginning. (But the "no catkin_pkg error" still needs the pip solution.)

I had this problem after upgrading to Ubuntu 18.04. My problem turned out to be a corrupted python-catkin-pkg.

In general the fix is... just try to install one of those dependencies, and a dependency of the dependency, in a depth-first search fashion. Eventually you will get a package that installs but the dependent package will not. The one that installs successfully is your corrupt package. Remove it and try to install ros again. Repeat if there are more corrupt packages.

It might be worth a try to uninstall ros and any related packages you installed with it, then running sudo apt-get autoremove, then reinstalling all of your ros stuff. I didn't test this though.

I got the same error when I was installing ROS Melodic Morenia on ubuntu 18.04. After I recursively tried to install the unmatched dependency, I found installed libopenjp2-7 pakcage version unmatched the required version, which was 2.3.0-1-Xenial but required 2.3.0-1. I uninstalled and reinstalled it, ROS installed successfully. My ubuntu 18.04 was ungraded from 16.10, maybe it was the cause.

Configure your Ubuntu repositories properly and try further.

https://help.ubuntu.com/community/Repositories/Ubuntu

Configure your Ubuntu repositories to allow "restricted," "universe," and "multiverse." You can follow the Ubuntu guide for instructions on doing this.

If not you can look into earlier python versions and dependencies.

If there is an update on your Linux, you should take it. And then follow the instructions in order. You may need to open new terminal windows after installation.

Related