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

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