Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gpg: no valid OpenPGP data found

I am trying to install Jenkins on Ubuntu 13.10 and I am getting the above mentioned error when i try to run the following command:

wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add - 
like image 877
dummy Avatar asked Jan 24 '14 17:01

dummy


People also ask

What is gpg no valid OpenPGP data found?

One of the other reasons for the “gpg: no valid OpenPGP data found” error can be the configuration problem of your machine, where the “curl” command is searching for the root CA in the wrong place. To handle the “gpg: no valid OpenPGP data found” error, in this case, you have to fix the CURL certificates path in the “.

What is gpg -- Dearmor?

The GPG manual says that --enarmor and --dearmor "Pack or unpack an arbitrary input into/from an OpenPGP ASCII armor. This is a GnuPG extension to OpenPGP and in general not very useful." An arbitrary value?


1 Answers

This problem might occur if you are behind corporate proxy and corporation uses its own certificate. Just add "--no-check-certificate" in the command. e.g. wget --no-check-certificate -qO - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -

It works. If you want to see what is going on, you can use verbose command instead of quiet before adding "--no-check-certificate" option. e.g. wget -vO - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add - This will tell you to use "--no-check-certificate" if you are behind proxy.

like image 69
Lake Avatar answered Nov 16 '22 02:11

Lake