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

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