xen-detect: 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/lib/xen-4.4/bin/xen-detect - from package: xen-utils-4.4

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