ROS installation error (ROS Kinetic in Ubuntu 16.04)

The sequence of steps listed in http://wiki.ros.org/kinetic/Installat..

. were complied with. (Attempting to install ROS kinetics on Ubuntu 16.04) Error when entering the following command:

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

      

Some packages cannot be installed. This may mean that you requested an impossible situation or that you are using unstable distribution, that some required packages have not yet been created or have not been removed from Incoming. The following information may help resolve the situation:

The following packages have unmet dependencies: ros-kinetic-desktop-full: Depends on ros-kinetic-desktop, but it will not be installed Depends on ros kinetic perception, but it will not be installed Depends: ros-kinetic-simulators, but it will not be installed. Depends: ros-kinetic-urdf-tutorial, but it will not be installed. E: Failed to fix problems, you had broken packages.

+5


source to share


6 answers


I had the same problem because I installed Gazebo before ROS. If you did the same, then you might get this error.

You can simply uninstall Gazebo and its dependencies and then try to install the full ROS version. Gazebo is usually included with full ROS versions. If it is not included in your version, then after installing ROS you can install Gazebo.

Remove Gazebo:

sudo apt-get remove gazebo9

      

"gazebo9" should be replaced with your version of Gazebo.



And then remove its dependencies

sudo apt-get autoremove

      

This command will remove any unnecessary dependencies. After that, install ROS using the official documentation. Hope it helps you.

Note. Full ROS versions come with Gazebo

+3


source


After upgrading ubuntu from 14.04 to 16.04, I faced the same problem. Adding multiple source packages to /etc/apt/sources.list

worked for me. So just sudo gedit /etc/apt/sources.list

copy pasting the following lines. Apply steps 1.2 to 1.7 in this link



deb http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse

      

+2


source


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

In general, the fix is ​​to simply try to install one of these dependencies and the dependency dependency in depth-first search mode. Eventually you will receive a package that will be installed, but the dependent package will not. The one that installs successfully is your corrupted package. Uninstall it and try installing ros again. Retry if there are more corrupted packages.

It might be worth trying to uninstall ros and any related packages you installed with it, then run sudo apt-get autoremove

and then reinstall all your ros stuff. I have not tested this.

0


source


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 that the installed version of libopenjp2-7 pakcage did not match the required version, which was 2.3.0-1-Xenial, but 2.3.0-1 was required. I uninstalled and reinstalled it, ROS installed successfully. My ubuntu 18.04 has been unclassified since 16.10, this might be the reason.

0


source


I solved the problem by first installing ros-kinetic-desktop

and then ros-kinetic-desktop-full

.

I recently reinstalled my system (Ubuntu / Lubuntu 16.04) and then ROS several times. As I recall, the installation just ros-kinetic-desktop

never causes any problems, but the installation ros-kinetic-desktop-full

always throws "no catkin_pkg

error" when called catkin_make

. (This can be solved pip install catkin_pkg

.)

This time I installed ros-kinetic-desktop-full

in LXLE (based on Lubuntu 16.04) and got an "Unsatisfied Dependency Error". I solved it as said at the beginning. (But "no catkin_pkg

error" still needs pip's solution.)

0


source


I had the same problem today and decided to use Synaptic and set everything to "Missing Recommendedends".

-1


source







All Articles