makeastheme: 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/makeastheme - from package: afterstep

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