ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

'catkin build' gives 'command not found

asked 2015-04-20 08:08:23 -0500

Nap gravatar image

I have ROS Indigo Desktop Full installed from binaries on Ubuntu 14.04.2.

I've been reading about the catkin make system, and am lead to believe there are 3 variations:

  • catkin_make
  • catkin_make_isolated, and
  • catkin build

I'm familiar with the first two and have used them for my projects, but I would like to make use of catkin build but I get an error catkin: command not found. There is no catkin script or executable in the /opt/ros/indigo/ folder structure.

What could be going wrong? Is there something else I need to install?


edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted

answered 2015-04-20 08:27:26 -0500

The catkin build command is part of the catkin_tools package. On apt-get the package is called python-catkin-tools.

The documentation for the package can be found here:

Since the package was officially released, I have completely stopped using catkin_make. It is a great package!

edit flag offensive delete link more


@jarvisschultz : Thanks!!

Nap gravatar image Nap  ( 2015-04-20 08:34:24 -0500 )edit

I issued this command in the terminal, and it worked:

sudo apt-get install python-catkin-tools

Thank you!

mwycliff gravatar image mwycliff  ( 2018-06-19 00:46:16 -0500 )edit

The command that solved it for me was:

sudo apt-get install python3-catkin-tools

I was missing the python3 specification.

jeremylevasseur gravatar image jeremylevasseur  ( 2020-09-15 08:03:40 -0500 )edit

Err:1 focal/main amd64 python3-catkin-tools all 0.5.0-1 404 Not Found [IP: 2605:bc80:3010::134 80] E: Failed to fetch 404 Not Found [IP: 2605:bc80:3010::134 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

This is the error that shows up while running the "sudo apt-get install python3-catkin-tools" command. how do I solve it?

Prachetas04 gravatar image Prachetas04  ( 2021-10-23 07:54:09 -0500 )edit

It has been ages, but for someone else also looking for the answer:

First you need to add the repositories and then do apt install.

shrini96 gravatar image shrini96  ( 2022-05-09 05:02:32 -0500 )edit

answered 2021-06-23 18:21:10 -0500

prudhvirajstark gravatar image

catkin: command not found

catkin_make is working for me but "catkin init" or "catkin build" did not work in noetic version ubuntu 20.04.

So I Installed python tools

sudo apt-get install python3-catkin-tools

I got error with "osrf-pycommon" distribution was not found and is required by catkin-tools

so I install osrf-pycommon

sudo apt-get install python3-osrf-pycommon

And Now, catkin is working well and good.

Thanks for the other answers.

edit flag offensive delete link more

answered 2021-12-15 14:08:29 -0500

indraneel gravatar image

Following instructions on fixed the problem for me

$ 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 python3-catkin-tools
edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-04-20 08:08:23 -0500

Seen: 58,722 times

Last updated: Dec 15 '21