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

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