7

I am always getting the below gpg error message. I have also tried adding a PPA from webupd8 but the result is same. How can I resolve this error?

user@work:~$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410
Executing: /tmp/apt-key-gpghome.VlEePwgr6J/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410
gpg: keyserver receive failed: No keyserver available

user@work:~$ sudo apt-key adv -vv --keyserver hkp://keyserver.ubuntu.com:80/ --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410
[sudo] password for deda: 
Executing: /tmp/apt-key-gpghome.Z1cpSvPrvA/gpg.1.sh -vv --keyserver hkp://keyserver.ubuntu.com:80/ --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410
gpg: no running Dirmngr - starting '/usr/bin/dirmngr'
gpg: waiting for the dirmngr to come up ... (5s)
gpg: connection to the dirmngr established
gpg: keyserver receive failed: No keyserver available 
5
  • Are you behind a proxy or something?
    – muru
    Nov 27, 2017 at 7:46
  • Add the output of sudo apt-key adv -vv --keyserver hkp://keyserver.ubuntu.com:80/ --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410 to the question, please.
    – muru
    Nov 27, 2017 at 8:04
  • Did you change /usr/bin/gpg? Usually it doesn't start or require dirmngr, that's an indication that gpg2 is being used.
    – muru
    Nov 27, 2017 at 8:17
  • I did not change anything after the install yesterday. I just installed my lubuntu last night and when I will install spotify there is an error like that
    – Deda
    Nov 27, 2017 at 8:19
  • This is happening on Debian too, freshly installed gpg. Definitely broken out of the box.
    – Adambean
    Apr 22, 2018 at 15:02

1 Answer 1

2

I got this error trying to update to Mono 6. I solved it by switching from keyserver.ubuntu.com to keys.gnupg.net in the apt-key command.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .