rt-migrate-test command not found

In this troubleshooting guide we learn how to fix rt-migrate-test command not found error message

Introduction

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

rt-migrate-test: command not found

or when using sudo you get the following error message

sudo: rt-migrate-test: command not found

Solutions to rt-migrate-test: command not found

How To Fix rt-migrate-test: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu rt-migrate-test is provided by rt-tests package.

rt-tests is:

rt-tests contains a set of programs that test and measure various components of real-time kernel behavior, such as timer latency, signal latency and the functioning of priority-inheritance mutexes. Additionally it contains hackbench, a program to generate work for the scheduler.

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

sudo apt-get -y install rt-tests

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

You can also use apt command to install rt-tests.

sudo apt -y install rt-tests

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

sudo aptitude install rt-tests

Summary

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