apt-key keyserver receive failed: No dirmngr

When running apt-key command, i get following error.

root@ip-172-31-46-9:~# sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
Executing: /tmp/apt-key-gpghome.MYmMoDt7Sv/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
gpg: failed to start the dirmngr '/usr/bin/dirmngr': No such file or directory
gpg: connecting dirmngr at '/run/user/0/gnupg/d.ar6ctd7ngpsiegqaseo7cgyr/S.dirmngr' failed: No such file or directory
gpg: keyserver receive failed: No dirmngr
root@ip-172-31-46-9:~# 

To fix this, run

apt install dirmngr

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *