stag-query: 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/stag-query - from package: libdata-stag-perl

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