libinput command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
libinput: command not found
or when using sudo you get the following error message
sudo: libinput: command not found
Solutions to libinput: command not found
How To Fix libinput: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu libinput is provided by libinput-tools package.
libinput-tools is:
libinput is a library that handles input devices for display servers and other applications that need to directly deal with input devices.
It provides device detection, device handling, input device event processing and abstraction to minimize the amount of custom input code the user of libinput needs to provide the common set of functionality that users expect.
This package includes the command line tools.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libinput-tools
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libinput-tools.
sudo apt -y install libinput-tools
Or if you have aptitude installed you can use the following command.
sudo aptitude install libinput-tools
Summary
In this tutorial we learn how to fix libinput command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.