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

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