affstats: 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/affstats - from package: afflib-tools

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