Error installing ROS Kinetic on Ubuntu 16.04

Massyanya picture Massyanya · Aug 28, 2017 · Viewed 20.7k times · Source

When I try to do the following:

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

I get the following error:

E: Unable to locate package ros-kinetic-desktop-full

Then I try to go for a workaround installing it from source, and once I run rosdep install --from-paths . -i -y --rosdistro kinetic, it throws the following error:

executing command [sudo -H apt-get install -y ros-kinetic-gazebo-dev]
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package ros-kinetic-gazebo-dev
ERROR: the following rosdeps failed to install
apt: command [sudo -H apt-get install -y ros-kinetic-gazebo-dev] failed

Any ideas what went wrong here?

Answer

adamconkey picture adamconkey · Oct 12, 2017

Following these instructions should work. You need to set up your sources.list and keys to get software from packages.ros.org:

sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
sudo apt-get update
sudo apt-get install ros-kinetic-desktop-full