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

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