xkeycaps command not found

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

Introduction

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

xkeycaps: command not found

or when using sudo you get the following error message

sudo: xkeycaps: command not found

Solutions to xkeycaps: command not found

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

In Ubuntu xkeycaps is provided by xkeycaps package.

xkeycaps is:

xkeycaps is a graphical front-end to xmodmap(1). It opens a window that looks like a keyboard; moving the mouse over a key shows what KeySyms and Modifier bits that key generates. Clicking on a key simulates KeyPress/KeyRelease events on the window of your choice. It is possible to change the KeySyms and Modifiers generated by a key through a mouse-based interface. This program can also write an input file for xmodmap to recreate your changes in future sessions.

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

sudo apt-get -y install xkeycaps

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

You can also use apt command to install xkeycaps.

sudo apt -y install xkeycaps

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

sudo aptitude install xkeycaps

Summary

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