flash_lock: 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/flash_lock - from package: mtd-utils

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