tomoyo-sortpolicy: 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/tomoyo-sortpolicy - from package: tomoyo-tools

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