dh_installdirs: 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_installdirs - from package: debhelper

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