These instructions are in order, you should suffer from connection problems (or get other content than expected). Do the following:
- Run
wget -o - https://www.postgresql.org/media/keys/ACCC4CF8.asc (without --quiet and without a channel in GnuPG) to check what is actually happening. Is wget an indication of any communication problems? - You can also download the file from your browsers, just save the text content with copy-paste to a text file and import it with
apt-key add [path-to-file] (or, if someone who finds this question wants to import into GnuPG keyring by default, gpg --import < [path-to-file] ).
Most likely, wget does not find the root certificate referenced by the PostgreSQL site, you are behind some proxy that is not configured for wget , or a gateway that modifies the website; at least, the returned results are not key data in the format expected by GnuPG.
source share