gpg: failed to start the dirmngr

When i add a key with apt-key command, i get error

[email protected]:~# apt-key adv –recv-keys –keyserver keys.gnupg.net E1F958385BFE2B6E
Executing: /tmp/apt-key-gpghome.0BP6Ro2t54/gpg.1.sh –recv-keys –keyserver keys.gnupg.net E1F958385BFE2B6E
gpg: failed to start the dirmngr ‘/usr/bin/dirmngr’: No such file or directory
gpg: connecting dirmngr at ‘/tmp/apt-key-gpghome.0BP6Ro2t54/S.dirmngr’ failed: No such file or directory
gpg: keyserver receive failed: No dirmngr
[email protected]:~#

To fix this, run

Once installed, apt-key command worked properly.

[email protected]:~# apt-key adv –recv-keys –keyserver keys.gnupg.net E1F958385BFE2B6E
Executing: /tmp/apt-key-gpghome.BLNQkuFGIQ/gpg.1.sh –recv-keys –keyserver keys.gnupg.net E1F958385BFE2B6E
gpg: key E1F958385BFE2B6E: public key “X2go Debian/Ubuntu Packaging ” imported
gpg: Total number processed: 1
gpg: imported: 1
[email protected]:~#

See Install x2go server in Debian 9