dpkg-scanpackages: 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-scanpackages - 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-scanpackages - from package: dpkg-dev

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