ap-trapd: 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/sbin/ap-trapd - from package: ap-utils

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