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

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