evtest command not found

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

Introduction

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

evtest: command not found

or when using sudo you get the following error message

sudo: evtest: command not found

Solutions to evtest: command not found

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

In Ubuntu evtest is provided by evtest package.

evtest is:

evtest monitors a Linux input device, displaying all the events it generates.

It can be used to determine mice button bindings, keymaps for exotic keyboards… It is commonly used to debug issues with input devices in X.Org.

evtest is now in maintenance mode and doesn’t support all the features of the latest kernels; evemu-record from the evemu-tools package should be used instead.

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

sudo apt-get -y install evtest

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

You can also use apt command to install evtest.

sudo apt -y install evtest

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

sudo aptitude install evtest

Summary

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