catkin_package_version command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
catkin_package_version: command not found
or when using sudo you get the following error message
sudo: catkin_package_version: command not found
Solutions to catkin_package_version: command not found
How To Fix catkin_package_version: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu catkin_package_version is provided by python3-catkin-pkg package.
python3-catkin-pkg is:
This package is part of Robot OS (ROS). It is a library for retrieving information about catkin packages. Catkin contains CMake macros that are useful in the development of ROS-related systems. ROS provides libraries and tools to help software developers create robot applications.
This package is a Python 3 module needed to use Catkin.
To fix this problem, we can install more using the command below.
sudo apt-get -y install python3-catkin-pkg
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install python3-catkin-pkg.
sudo apt -y install python3-catkin-pkg
Or if you have aptitude installed you can use the following command.
sudo aptitude install python3-catkin-pkg
Summary
In this tutorial we learn how to fix catkin_package_version command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.