learnkeys command not found

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

Introduction

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

learnkeys: command not found

or when using sudo you get the following error message

sudo: learnkeys: command not found

Solutions to learnkeys: command not found

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

In Ubuntu learnkeys is provided by esekeyd package.

esekeyd is:

ESE Key Daemon is a multimedia keyboard daemon for Linux. With the 2.6 kernel series it can also handle remote controls, as they are presented as keyboards. No kernel patch is required. It is a userspace program that pools /dev/input/event? interfaces for incoming keyboard key presses.

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

sudo apt-get -y install esekeyd

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

You can also use apt command to install esekeyd.

sudo apt -y install esekeyd

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

sudo aptitude install esekeyd

Summary

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