tpm_getpubek: 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 CentOS possible default full paths are:

/usr/sbin/tpm_getpubek - from package: tpm-tools

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/sbin/tpm_getpubek - from package: tpm-tools

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