osinfo-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/osinfo-query - from package: libosinfo-bin

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