The old QGIS key ring
qgis-2017.gpg.key is expired and generates a warning during
apt update today.
Following the QGIS instructions, I tried to update the key as follows:
wget -O - https://qgis.org/downloads/qgis-2019.gpg.key | gpg --import gpg --fingerprint 51F523511C7028C3
But instead of the normal output, I get an error:
$ wget -O - https://qgis.org/downloads/qgis-2019.gpg.key | gpg --import --2019-08-16 18:36:35-- https://qgis.org/downloads/qgis-2019.gpg.key Resolving qgis.org (qgis.org)... 188.8.131.52, 184.108.40.206, 2606:4700:30::681b:8bdc, ... Connecting to qgis.org (qgis.org)|220.127.116.11|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 1839 (1.8K) [application/pgp-keys] Saving to: ‘STDOUT’ - 100%[===================>] 1.80K --.-KB/s in 0s 2019-08-16 18:36:35 (33.3 MB/s) - written to stdout [1839/1839] gpg: key 51F523511C7028C3: 1 signature not checked due to a missing key gpg: no writable keyring found: Not found gpg: error reading '[stdin]': General error gpg: import from '[stdin]' failed: General error gpg: Total number processed: 0
How can I fix the error please?