apt-extracttemplates: 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/apt-extracttemplates - from package: apt-utils

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