rosdistro_build_cache command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
rosdistro_build_cache: command not found
or when using sudo you get the following error message
sudo: rosdistro_build_cache: command not found
Solutions to rosdistro_build_cache: command not found
How To Fix rosdistro_build_cache: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu rosdistro_build_cache is provided by python3-rosdistro package.
python3-rosdistro is:
This package is part of Robot OS (ROS). The rosdistro tool allows you to get access to the full dependency tree and the vcs information of all packages and repositories.
rosdistro is a file format for managing ROS Distributions and the ROS stacks they contain. This file format is used as input to a variety of tools in the ROS build and release toolchain, from stack release tools to rosdoc. The rosdistro format has changed for Catkin-based repositories.
This package installs the library for Python 3.
To fix this problem, we can install more using the command below.
sudo apt-get -y install python3-rosdistro
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install python3-rosdistro.
sudo apt -y install python3-rosdistro
Or if you have aptitude installed you can use the following command.
sudo aptitude install python3-rosdistro
Summary
In this tutorial we learn how to fix rosdistro_build_cache command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.