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.
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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With