dpkg-architecture: 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 CentOS possible default full paths are:

/usr/bin/dpkg-architecture - from package: dpkg-dev

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/dpkg-architecture - from package: dpkg-dev

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