dhis-genpass: 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/dhis-genpass - from package: dhis-tools-genkeys

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