catkin_lint command not found

In this troubleshooting guide we learn how to fix catkin_lint command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

catkin_lint: command not found

or when using sudo you get the following error message

sudo: catkin_lint: command not found

Solutions to catkin_lint: command not found

How To Fix catkin_lint: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu catkin_lint is provided by catkin-lint package.

catkin-lint is:

This package is part of Robot OS (ROS). catkin_lint checks package configurations for the catkin build system of ROS. It runs a static analysis of the package.xml and CMakeLists.txt files in your package, and it will detect and report a number of common problems.

To fix this problem, we can install more using the command below.

sudo apt-get -y install catkin-lint

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install catkin-lint.

sudo apt -y install catkin-lint

Or if you have aptitude installed you can use the following command.

sudo aptitude install catkin-lint

Summary

In this tutorial we learn how to fix catkin_lint command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.