grub-mknetdir: 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/grub-mknetdir - from package: grub-common

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