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

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