I'm trying to install PostgreSQL 9.4 on a clean, new Debian Jessie machine.
I'm following these instructions: https://wiki.postgresql.org/wiki/Apt#Quickstart
When I get to this point:
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
I get this error:
gpg: no valid OpenPGP data found.
What am I doing wrong?
The “gpg: no valid OpenPGP data found” error occurs due to certification issues regarding the software that is to be installed using wget or curl.It can be fixed by removing the certification check in the command line.
openpgp.org. PGP and similar software follow the OpenPGP, an open standard of PGP encryption software, standard (RFC 4880) for encrypting and decrypting data.
These instructions are fine, you must suffer from connection problems (or get other contents served than expected. Do following:
wget -o - https://www.postgresql.org/media/keys/ACCC4CF8.asc
(without --quiet
and without pipe to GnuPG) to inspect what's actually happening. Is wget
indicating any connection problems?apt-key add [path-to-file]
(or, given somebody finding this question wants to import to the default GnuPG keyring, gpg --import < [path-to-file]
).Most likely wget
does not find the root certificated referenced by the PostgreSQL website, you're behind some proxy which is not configured for wget
or a gateway changing the website; at least the results returned are not key data in a format GnuPG expects.
In my case the problem was caused by an incorrect https certificate from postgresql.
Just add the --no-check-certificate to the wget command.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With