aa-logprof: 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

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/sbin/aa-logprof - from package: apparmor-utils

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