ydotool command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
ydotool: command not found
or when using sudo you get the following error message
sudo: ydotool: command not found
Solutions to ydotool: command not found
How To Fix ydotool: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu ydotool is provided by ydotool package.
ydotool is:
Generic Linux command-line automation tool
ydotool works differently from xdotool. xdotool sends X events directly to X server, while ydotool uses the uinput framework of Linux kernel to emulate an input device.
When ydotool runs and creates an virtual input device, it will take some time for your graphical environment (X11/Wayland) to recognize and enable the virtual input device. (Usually done by udev)
This package contains the command-line utility.
To fix this problem, we can install more using the command below.
sudo apt-get -y install ydotool
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install ydotool.
sudo apt -y install ydotool
Or if you have aptitude installed you can use the following command.
sudo aptitude install ydotool
Summary
In this tutorial we learn how to fix ydotool command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.