These instructions are fine, you must suffer from connection problems (or get other contents served than expected. Do following:
- Run
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?
- You can also download the file from your browsers, simply store the textual contents using copy-paste to a text file and import it using
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.