gpgdir: 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/gpgdir - from package: signing-party

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