getflags: 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/lib/plan9/bin/getflags - from package: 9base

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