addgnupghome: 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/addgnupghome - from package: gnupg2

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

On Debian possible default full paths are:

/usr/sbin/addgnupghome - from package: gnupg2

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