aaphoto: 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/aaphoto - from package: aaphoto

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