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

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