rosunit command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
rosunit: command not found
or when using sudo you get the following error message
sudo: rosunit: command not found
Solutions to rosunit: command not found
How To Fix rosunit: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu rosunit is provided by python3-rosunit package.
python3-rosunit is:
This package is part of Robot OS (ROS). python3-rosunit is a lower-level library for rostest and handles unit tests, whereas rostest handles integration tests. It’s an internal tool for running unit tests within ROS. While it can be run by a regular user, most users will generally use rosunit indirectly via rosbuild test macros.
This package contains the Python 3 library.
To fix this problem, we can install more using the command below.
sudo apt-get -y install python3-rosunit
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install python3-rosunit.
sudo apt -y install python3-rosunit
Or if you have aptitude installed you can use the following command.
sudo aptitude install python3-rosunit
Summary
In this tutorial we learn how to fix rosunit command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.