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

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