shunit2 command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
shunit2: command not found
or when using sudo you get the following error message
sudo: shunit2: command not found
Solutions to shunit2: command not found
How To Fix shunit2: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu shunit2 is provided by shunit2 package.
shunit2 is:
shUnit2 was originally developed to provide a consistent testing solution for log4sh, a shell based logging framework similar to log4j. It is designed to work in a similar manner to JUnit, PyUnit, etc.
To fix this problem, we can install more using the command below.
sudo apt-get -y install shunit2
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install shunit2.
sudo apt -y install shunit2
Or if you have aptitude installed you can use the following command.
sudo aptitude install shunit2
Summary
In this tutorial we learn how to fix shunit2 command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.