deghosting_mask: 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/deghosting_mask - from package: hugin-tools

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