hostnamectl: 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/hostnamectl - from package: systemd

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