mdetect command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
mdetect: command not found
or when using sudo you get the following error message
sudo: mdetect: command not found
Solutions to mdetect: command not found
How To Fix mdetect: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu mdetect is provided by mdetect package.
mdetect is:
mdetect is a tool for autoconfiguring mice; it is typically used as the backend to some user-friendly frontend code. mdetect writes the autodetected mouse device and protocol (as used by gpm) to standard output. It can be invoked so as to produce output appropriate for XFree86 X server configuration files.
To fix this problem, we can install more using the command below.
sudo apt-get -y install mdetect
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install mdetect.
sudo apt -y install mdetect
Or if you have aptitude installed you can use the following command.
sudo aptitude install mdetect
Summary
In this tutorial we learn how to fix mdetect command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.