setup-packaging-environment: 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/setup-packaging-environment - from package: ubuntu-dev-tools

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