Unable to build catkin workspace; python-rosdep, no module terminal_color
Hi guys,
I'm running into an error when installing ROS (melodic) on Ubuntu (18.04). As I have absolutely no experience with UNIX, I don't really know what's going on or how to fix it.
First, I tried installing it with sudo apt-get install ros-melodic-desktop-full
but that didn't work because it wasn't found. Following the suggestion of an online post, I switched to installing it from source.
AddOn: Sorry that I haven't mentioned that in advance (didn't make the connection): I'm running Ubuntu on the Windows Subsystem for Linux (WSL) and I already have Python3 installed on windows. Ref. comment in this ROS Answer. How can I check whether this is the problem?
Now I'm following these instructions: melodic installation from source
Everything worked up to point 2.1.1 Resolving Dependencies. Doing this step (again), I get the info:
~/ros_catkin_ws$ rosdep install --from-paths src --ignore-src --rosdistro melodic -y
executing command [sudo -H apt-get install -y python-rosdep]
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'python-rosdep2' instead of 'python-rosdep'
python-rosdep2 is already the newest version (0.11.8-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ERROR: the following rosdeps failed to install
apt: Failed to detect successful installation of [python-rosdep]
Then I proceed with the installation tutorial trying to build the catkin workspace:
~/ros_catkin_ws$ ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release
Traceback (most recent call last):
File "./src/catkin/bin/catkin_make_isolated", line 12, in <module>
from catkin.builder import build_workspace_isolated
File "./src/catkin/bin/../python/catkin/builder.py", line 66, in <module>
from catkin_pkg.terminal_color import ansi, disable_ANSI_colors, fmt, sanitize
ImportError: No module named terminal_color
This is my Ubuntu release:
~/ros_catkin_ws$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
According to the answer from 130s I tried the command sudo apt-get update
, but that didn't work initially due to a key not being available:
$ sudo apt-get update
[sudo] password for stivari:
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:5 http://packages.ros.org/ros/ubuntu bionic InRelease [4031 B]
Err:5 http://packages.ros.org/ros/ubuntu bionic InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5523BAEEB01FA116
Reading package lists... Done
W: GPG error: http://packages.ros.org/ros/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5523BAEEB01FA116
E: The repository 'http://packages.ros.org/ros/ubuntu bionic InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Adding ...
When you see something like this you need to run the commands in admin mode. Add
sudo
in the beginning of the command (that's Linux basics so you can find lots of info by Googling the error message ;)First question: why do you want to install Melodic from sources on Ubuntu 18, for which binary packages are available (ie: simple
apt install ros-melodic-****
)?