png2pat command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
png2pat: command not found
or when using sudo you get the following error message
sudo: png2pat: command not found
Solutions to png2pat: command not found
How To Fix png2pat: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu png2pat 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 png2pat command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.