xte command not found

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

Introduction

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

xte: command not found

or when using sudo you get the following error message

sudo: xte: command not found

Solutions to xte: command not found

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

In Ubuntu xte is provided by xautomation package.

xautomation is:

Control X from the command line for scripts, and do “visual scraping” to find things on the screen. The control interface allows mouse movement, clicking, button up/down, key up/down, etc, using the XTest extension. The visgrep program find images inside of images and reports the coordinates, allowing programs to find buttons, etc, on the screen to click on.

If you just want to control X, you may find xdotool easier to use.

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

sudo apt-get -y install xautomation

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

You can also use apt command to install xautomation.

sudo apt -y install xautomation

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

sudo aptitude install xautomation

Summary

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