Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ROS Installation error ( ROS Kinetic in Ubuntu 16.04 )

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.

like image 749
Madhan Suresh Karuppannan Avatar asked Jul 26 '17 19:07

Madhan Suresh Karuppannan


2 Answers

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

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

Remove Gazebo:

sudo apt-get remove gazebo9

"gazebo9" has to be replaced with your version of Gazebo.

And then remove its dependencies

sudo apt-get autoremove

This command will remove all the unnecessary dependencies. After that, install ROS using the official documentation. Hope this will help you.

Note: ROS full versions comes with Gazebo

like image 102
Lahiru Karunaratne Avatar answered Oct 21 '22 19:10

Lahiru Karunaratne


After upgrading ubuntu 14.04 to 16.04 I run into the same issue. Adding following package sources to /etc/apt/sources.list worked for me. So just do sudo gedit /etc/apt/sources.list copy paste following lines. Apply steps from 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
like image 22
fet.atas Avatar answered Oct 21 '22 20:10

fet.atas