r2test command not found

In this troubleshooting guide we learn how to fix r2test command not found error message

Introduction

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

r2test: command not found

or when using sudo you get the following error message

sudo: r2test: command not found

Solutions to r2test: command not found

How To Fix r2test: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu r2test is provided by libopenr2-bin package.

libopenr2-bin is:

OpenR2 is a library that implements the MFC/R2 telephony signalling over E1 lines using the DAHDI Telephony interface.

The MFC/R2 protocol is a telephony signalling protocol, widely used in Latin America, China and Africa, similar to the ISDN protocols found in most of Europe and North America

This package contains r2test - test-driver for libopenr2.

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

sudo apt-get -y install libopenr2-bin

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

You can also use apt command to install libopenr2-bin.

sudo apt -y install libopenr2-bin

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

sudo aptitude install libopenr2-bin

Summary

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