5

I am trying to run the following command and get this error:

sudo add-apt-repository ppa:ondrej/php

I have my firewall turned off and did the proceeding commands before running this command:

sudo apt-get purge apache2
sudo apt-get autoremove
sudo netstat -ltnp | grep :80

if nginx is listening on port 80

sudo apt-get purge nginx nginx-common
sudo apt-get autoremove

then I follow with the command:

sudo apt-get-repository ppa:ondrej/php

and get the following errors;

Error: retrieving gpg key timed out

Any help??

2 Answers 2

6

The problem is likely to be the GPG keyserver you are connecting to being overloaded. You can probably try again later, or if that still does not work, you can switch to a different keyserver.

For example, if you would like to use keys.openpgp.org as your keyserver, you can put

keyserver keys.openpgp.org

into ~/.gnupg/gpg.conf.

1

Just use a VPN and your problem would be solved.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.