Ask Your Question

Having issues with installations of catkin tools

asked 2020-10-30 07:57:39 -0600

ashwanirathee gravatar image

I am using the latest Ubuntu 20.04.1 LTS and installed ROS noetic using the tutorial using the commands:

sudo sh -c 'echo "deb $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt-key adv --keyserver 'hkp://' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
sudo apt update
sudo apt install ros-noetic-desktop-full
echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc
source ~/.bashrc

ashwani@ashwani:~$ printenv | grep ROS


Then I tried to install catkin thing which handles the workspace

sudo sh -c 'echo "deb `lsb_release -sc` main" > /etc/apt/sources.list.d/ros-latest.list'
wget -O - | sudo apt-key add -
sudo apt-get update
sudo apt-get install python-catkin-tools

it shows error:

ashwani@ashwani:~$ sudo sh -c 'echo "deb `lsb_release -sc` main" > /etc/apt/sources.list.d/ros-latest.list'
ashwani@ashwani:~$ wget -O - | sudo apt-key add -
--2020-10-30 18:09:07--
Resolving ( 2600:3402:200:227::2, 2605:bc80:3010::134, 2600:3404:200:237::2, ...
Connecting to (|2600:3402:200:227::2|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1167 (1.1K)
Saving to: ‘STDOUT’

-                   100%[===================>]   1.14K  --.-KB/s    in 0s      

2020-10-30 18:09:08 (45.7 MB/s) - written to stdout [1167/1167]

ashwani@ashwani:~$ sudo apt-get update
Hit:1 focal InRelease
Hit:2 focal-updates InRelease              
Hit:3 focal-backports InRelease            
Hit:4 focal InRelease                       
Hit:5 focal InRelease                      
Hit:6 focal-security InRelease
Reading package lists... Done                 

ashwani@ashwani:~$ sudo apt-get install python-catkin-tools
Reading package lists... Done
Building dependency tree       
Reading state information... Done
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:
 python-catkin-tools : Depends: python-catkin-pkg (>= 0.2.9) but it is not installable
                       Depends: python-osrf-pycommon but it is not installable
 E: Unable to correct problems, you have held broken packages.

A look at bashrc:

# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'

# Add an "alert" alias for long running commands.  Use like so:
#   sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(h>

# Alias definitions.
# You may want to put all your ...
edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2020-10-30 08:18:09 -0600

ashwanirathee gravatar image

updated 2021-11-12 09:21:45 -0600

lucasw gravatar image

Solution : apt and pip3 versions of catkin_tools are broken for noetic. Workaround is to install like this:

sudo pip3 install git+
edit flag offensive delete link more

answered 2020-12-23 18:03:45 -0600

wmmc88 gravatar image

updated 2020-12-23 18:06:55 -0600

Your issue is that you are trying to install a python2 version of catkin tools. You should be using the python3 version with ros noetic:

sudo apt install python3-osrf-pycommon python3-catkin-tools
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2020-10-30 07:57:39 -0600

Seen: 482 times

Last updated: Nov 12