forgetsql-generate: 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/forgetsql-generate - from package: python-forgetsql

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