Search This Blog

Thursday, January 11, 2018

Linux: apt





Common errors:

gpg: keyserver receive failed: No dirmngr

The error will look like:
root@deb15:~# apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410
Executing: /tmp/apt-key-gpghome.CQvyuFwlWI/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410
gpg: failed to start the dirmngr '/usr/bin/dirmngr': No such file or directory
gpg: connecting dirmngr at '/tmp/apt-key-gpghome.CQvyuFwlWI/S.dirmngr' failed: No such file or directory
gpg: keyserver receive failed: No dirmngr


To fix it, just install dirmngr:
root@deb15:~# apt install dirmngr


Now, all's fine:
root@deb15:~# apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410 Executing: /tmp/apt-key-gpghome.zspnEwdIk3/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410 gpg: key EFDC8610341D9410: public key "Spotify Public Repository Signing Key " imported gpg: Total number processed: 1 gpg: imported: 1

No comments:

Post a Comment