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

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