png2pat: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On Debian possible default full paths are:

/usr/bin/png2pat - from package: xautomation

You may install the required package with command apt-get install {package}
Error in other languages:
png2pat: bevel nie gevind nie
png2pat: comandă negăsită
png2pat: comando não encontrado
png2pat: commande introuvable
png2pat: command not found
png2pat: käsku ei ole
png2pat: không tìm thấy lệnh
png2pat: komanda nerasta
png2pat: Kommando nicht gefunden.
png2pat: kommandot finns inte
png2pat: komut yok
png2pat: nie znaleziono polecenia
png2pat: níor aimsíodh an t-ordú
png2pat: no se encontró la orden
png2pat: no s'ha trobat l'ordre
png2pat: opdracht niet gevonden
png2pat: parancs nem található
png2pat: perintah tidak ditemukan
png2pat: príkaz nenájdený
png2pat: příkaz nenalezen
png2pat: команда не найдена
png2pat: командата не е открита
png2pat: 命令找不到
png2pat: コマンドが見つかりません