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

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