Ask Your Question
1

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 http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --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

ROS_VERSION=1
ROS_PYTHON_VERSION=3
ROS_PACKAGE_PATH=/opt/ros/noetic/share
ROSLISP_PACKAGE_DIRECTORIES=
ROS_ETC_DIR=/opt/ros/noetic/etc/ros
ROS_MASTER_URI=http://localhost:11311
ROS_ROOT=/opt/ros/noetic/share/ros
ROS_DISTRO=noetic

Then I tried to install catkin thing which handles the workspace

sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu `lsb_release -sc` main" > /etc/apt/sources.list.d/ros-latest.list'
wget http://packages.ros.org/ros.key -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 http://packages.ros.org/ros/ubuntu `lsb_release -sc` main" > /etc/apt/sources.list.d/ros-latest.list'
ashwani@ashwani:~$ wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
--2020-10-30 18:09:07--  http://packages.ros.org/ros.key
Resolving packages.ros.org (packages.ros.org)... 2600:3402:200:227::2, 2605:bc80:3010::134, 2600:3404:200:237::2, ...
Connecting to packages.ros.org (packages.ros.org)|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]

OK
ashwani@ashwani:~$ sudo apt-get update
Hit:1 http://in.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://in.archive.ubuntu.com/ubuntu focal-updates InRelease              
Hit:3 http://in.archive.ubuntu.com/ubuntu focal-backports InRelease            
Hit:4 http://packages.ros.org/ros/ubuntu focal InRelease                       
Hit:5 http://archive.canonical.com/ubuntu focal InRelease                      
Hit:6 http://security.ubuntu.com/ubuntu 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 ...
(more)
edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
0

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+https://github.com/catkin/catkin_tools.git
edit flag offensive delete link more
0

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

Stats

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

Seen: 482 times

Last updated: Nov 12