mkpasswd.pl: 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/mkpasswd.pl - from package: libstring-mkpasswd-perl

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