xcape command not found

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

Introduction

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

xcape: command not found

or when using sudo you get the following error message

sudo: xcape: command not found

Solutions to xcape: command not found

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

In Ubuntu xcape is provided by xcape package.

xcape is:

xcape allows you to use a modifier key as another key when pressed and released on its own. Note that it is slightly slower than pressing the original key, because the pressed event does not occur until the key is released. The default behaviour is to generate the Escape key when Left Control is pressed and released on its own.

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

sudo apt-get -y install xcape

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

You can also use apt command to install xcape.

sudo apt -y install xcape

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

sudo aptitude install xcape

Summary

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