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

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