Errors installing ROS Kinetic from source on Ubuntu 16.04
Hi,
I've been trying hard to install ROS Kinetic from source (so I can change some feature in it) on _clean_, freshly installed Ubuntu 16.04 setup according to the Installing from source manual (steps below) (Note, I was able install ROS Kinetic release on an other clean Ubuntu.)
sudo apt-get install python-rosdep python-rosinstall-generator python-wstool python-rosinstall build-essential
sudo rosdep init
rosdep update
mkdir ~/ros_catkin_ws
cd ~/ros_catkin_ws
rosinstall_generator desktop_full --rosdistro kinetic --deps --wet-only --tar > kinetic-desktop-full-wet.rosinstall
wstool init -j8 src kinetic-desktop-full-wet.rosinstall
At this point I get stuck in an infinite loop of
[opencv3] still active
[opencv3] still active
[opencv3] still active
[opencv3] still active
After killing it, and continuing with the following step:
rosdep install --from-paths src --ignore-src --rosdistro kinetic -y
I get stuck in the unrecoverable error
Reading state information... Done
E: Unable to locate package ros-kinetic-opencv3
ERROR: the following rosdeps failed to install
apt: command [sudo -H apt-get install -y ros-kinetic-opencv3] failed
I have no idea how to continue from here. Could somebody please help?
Edit: OK, now to get past the error one needs to get rid of the -j8
flag. Some kind of race condition in the package management. It would be great if the documentation would be properly updated.
Note however I get a new error:
apt: command [sudo -H apt-get install -y shiboken2] failed
This is a mess...
Not an answer, but if you just want to "change some feature", you don't need to install everything from source. This depends a bit on what it is exactly that you want to work on (
roscpp
fi will .... increase the set of pkgs that you'd need to built from sources significantly), but any package that you add to a Catkin workspace will automatically be found "first", shadowing the system-installed version (ie: from
.deb
s).What would you like to see added? (anecdotal, but) I use this command almost daily and it's pretty robust, even with higher nrs of concurrent downloads.
This makes perfect sense: you don't have the ROS pkgs repositories configured/enabled, cancelled the download of
opencv3
(so it's not part of your workspace) and then askrosdep
.... to install all missing dependencies using binary (ie: released) packages.
opencv3
is probably a dependency of some pkgs indesktop-full
, sorosdep
is going to try to install it.No pkg repos -> trying to install
ros-kinetic-opencv3
-> error.