Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Can't install public key

Solved!

Can't install public key

When I try to install the public key through terminal I get this error:

root@pc00229:/home/jdrury# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 94558F59
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.LCjNnQkCZj --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys 94558F59
gpg: requesting key 94558F59 from hkp server keyserver.ubuntu.com
?: keyserver.ubuntu.com: Connection refused
gpgkeys: HTTP fetch error 7: couldn't connect: Connection refused
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0


Any help is appreciated.

Reply

Accepted Solutions
Marked as solution

Select this text:

 

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: SKS 1.0.10

mQENBE/oRU4BCAChZc9J1BVgfwFUuD607/6pQcRSt5AlSEyY9zIrHG1CnEg5JZB7+JDv4Mib
MSg+aM+VDsA7pyNx3wozJvv6+eWoz2tVau9GxGv3tJmu5qsJc6+lTnEXLC7Mnd8YoxEo8Exg
6lrLK53HpD2YlQIDnV5d4qlYZZ5KO4C25c8Ou5TaOo0jO8eD+TnsQizWWEcCi9xqLUzB287R
1GThh1YAcFL8UZ1S4J4ptZskfvjhB77TJf2A1a7yBNnuWD2nw5Bd0MZDl/JBbj/7w960u4iE
rdU0arQrZY4scpQaz15XIcgtyvOWBoZ0ySwu26NYtQOUXXkNZ1QZQ6WcVCZEctT8MXwxABEB
AAG0PlNwb3RpZnkgUHVibGljIFJlcG9zaXRvcnkgU2lnbmluZyBLZXkgPG9wZXJhdGlvbnNA
c3BvdGlmeS5jb20+iQE8BBMBAgAmBQJP6EVOAhsDBQkFo5qABgsJCAcDAgQVAggDBBYCAwEC
HgECF4AACgkQCCzO35RVj1k0tQf/by3EXd/PiQbyCHDeI4THXSJRknoy99xAhyQzszm8OEPm
vkZwIkfaKfX8AtCkFWXo7HkLp9jTnh5yLf4vHxC2wTvrTV55PmzlDlkU+ypAtn8cWfr3jP+L
odXodNXtIDuvsffWk66HYZyRZQL0dhiojR6g66nC/L6CFv772t/fhfkv+V0mKsYQppzR2V9k
SMs0NReaSUUHHkT8JDuPttvDVJREhG67SLt7+Jz+moveJf4Jbhdb+lC2OnxVLKe4KwNCsSwZ
PfjG5sHL2x6UVQOXhELknFbno2+qJd/Ux24GTnBbT46ERSuS8ElLPgOo61NYoY8QO4UusGWB
D5ciFJws/g==
=HvND
-----END PGP PUBLIC KEY BLOCK-----

 

Run this in terminal:

 

sudo apt-key add -

 

Paste the text (middle-click or use copy/paste)

 

Press ^D

View solution in original post

Marked as solution

THE SOLOTUIN IS BELOW

 

It will time out and fail to import the key, subsequently causing your apt-get operations to fail. A quick update to the command cures it. You *have* to specify hkp:// and :80

 

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 94558F59

 

Success! You can also apply the same changes to your default keyservers in ~/.gnupg/gpg.conf

Be Sociable, Share!

View solution in original post

Marked as solution

Partially correct fix. (depending on distribution, I'm on Deepin) Please thoroughly check your terminal output.

gpg: keyserver receive failed: No dirmngr

 

In your terminal, do:

sudo apt install -y dirmngr

Let dirmngr and it's dependencies install and then re-run the key import:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 94558F59

and you will be pleasently suprised to receive:


Executing: /tmp/apt-key-gpghome.34fAdBDa7O/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 94558F59
gpg: key 082CCEDF94558F59: public key "Spotify Public Repository Signing Key <operations@spotify.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1

 

Enjoy 😃

View solution in original post

6 Replies
Marked as solution

Select this text:

 

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: SKS 1.0.10

mQENBE/oRU4BCAChZc9J1BVgfwFUuD607/6pQcRSt5AlSEyY9zIrHG1CnEg5JZB7+JDv4Mib
MSg+aM+VDsA7pyNx3wozJvv6+eWoz2tVau9GxGv3tJmu5qsJc6+lTnEXLC7Mnd8YoxEo8Exg
6lrLK53HpD2YlQIDnV5d4qlYZZ5KO4C25c8Ou5TaOo0jO8eD+TnsQizWWEcCi9xqLUzB287R
1GThh1YAcFL8UZ1S4J4ptZskfvjhB77TJf2A1a7yBNnuWD2nw5Bd0MZDl/JBbj/7w960u4iE
rdU0arQrZY4scpQaz15XIcgtyvOWBoZ0ySwu26NYtQOUXXkNZ1QZQ6WcVCZEctT8MXwxABEB
AAG0PlNwb3RpZnkgUHVibGljIFJlcG9zaXRvcnkgU2lnbmluZyBLZXkgPG9wZXJhdGlvbnNA
c3BvdGlmeS5jb20+iQE8BBMBAgAmBQJP6EVOAhsDBQkFo5qABgsJCAcDAgQVAggDBBYCAwEC
HgECF4AACgkQCCzO35RVj1k0tQf/by3EXd/PiQbyCHDeI4THXSJRknoy99xAhyQzszm8OEPm
vkZwIkfaKfX8AtCkFWXo7HkLp9jTnh5yLf4vHxC2wTvrTV55PmzlDlkU+ypAtn8cWfr3jP+L
odXodNXtIDuvsffWk66HYZyRZQL0dhiojR6g66nC/L6CFv772t/fhfkv+V0mKsYQppzR2V9k
SMs0NReaSUUHHkT8JDuPttvDVJREhG67SLt7+Jz+moveJf4Jbhdb+lC2OnxVLKe4KwNCsSwZ
PfjG5sHL2x6UVQOXhELknFbno2+qJd/Ux24GTnBbT46ERSuS8ElLPgOo61NYoY8QO4UusGWB
D5ciFJws/g==
=HvND
-----END PGP PUBLIC KEY BLOCK-----

 

Run this in terminal:

 

sudo apt-key add -

 

Paste the text (middle-click or use copy/paste)

 

Press ^D

The instructions here still say to use keyserver.ubuntu.com and it still doesn't work.

 

http://www.spotify.com/uk/download/previews/

 

Perhaps someone at Spotify could update this page?

Marked as solution

THE SOLOTUIN IS BELOW

 

It will time out and fail to import the key, subsequently causing your apt-get operations to fail. A quick update to the command cures it. You *have* to specify hkp:// and :80

 

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 94558F59

 

Success! You can also apply the same changes to your default keyservers in ~/.gnupg/gpg.conf

Be Sociable, Share!

Confirmed that hēnk's method works. For those of us behind a firewall, adding hkp and the port number does not necessarily resolve the situation.

Didin't work for me...

Marked as solution

Partially correct fix. (depending on distribution, I'm on Deepin) Please thoroughly check your terminal output.

gpg: keyserver receive failed: No dirmngr

 

In your terminal, do:

sudo apt install -y dirmngr

Let dirmngr and it's dependencies install and then re-run the key import:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 94558F59

and you will be pleasently suprised to receive:


Executing: /tmp/apt-key-gpghome.34fAdBDa7O/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 94558F59
gpg: key 082CCEDF94558F59: public key "Spotify Public Repository Signing Key <operations@spotify.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1

 

Enjoy 😃

Suggested posts