atf-sh command not found

In this troubleshooting guide we learn how to fix atf-sh command not found error message

Introduction

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

atf-sh: command not found

or when using sudo you get the following error message

sudo: atf-sh: command not found

Solutions to atf-sh: command not found

How To Fix atf-sh: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu atf-sh is provided by atf-sh package.

atf-sh is:

The Automated Testing Framework (ATF) is a collection of libraries to implement test programs in a variety of languages.

ATF libraries provide an API for writing test programs. The test programs can be written in C, C++, or POSIX shell. ATF based test programs can be run manually, or via automation.

Kyua is the preferred execution engine for ATF test programs.

This package ships the atf-sh tool and the corresponding shell library

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

sudo apt-get -y install atf-sh

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

You can also use apt command to install atf-sh.

sudo apt -y install atf-sh

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

sudo aptitude install atf-sh

Summary

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