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

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