I'm following the official guide to install Docker.
And in step 2 Add Docker’s official GPG key, I got the following error:
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
gpg: invalid key resource URL '/tmp/apt-key-gpghome.Rcg4Lpatvi/home:manuelschneid3r.asc.gpg'
gpg: keyblock resource '(null)': General error
gpg: key 1488EB46E192A257: 1 signature not checked due to a missing key
gpg: key 3B4FE6ACC0B21F32: 3 signatures not checked due to missing keys
gpg: key D94AA3F0EFE21092: 3 signatures not checked due to missing keys
gpg: key 871920D1991BC93C: 1 signature not checked due to a missing key
gpg: Total number processed: 9
gpg: skipped new keys: 9
How do I solve that?
This issue can be fixed by doing:
Or
This could be due to installing the Albert launcher, here is a related issue. Thanks to Sasgorilla in the comments
Got this error while installing MongoDB. Following worked for me.
sudo rm /etc/apt/trusted.gpg.d/home:manuelschneid3r.gpg
Note that this answer is a copy of the answer in this article.
-- Theres not much you can do about expired keys, but to get a new valid one. Seems easy but still there are some caveats.
Note that multiple keys have been distributed in the past: the global key and a key for each distribution. Also recommended code snippets in the past put the keys in different locations (/etc/apt/trusted.gpg and /etc/apt/trusted.gpg.d/[…]).
This tutorial will try to fix all possible issues and get apt to work again.
1. Keys embedded in
/etc/apt/trusted.gpg
Use
apt-key del <id>
to remove the key. Find the id of the repo home:manuelschneid3r usingapt-key list
.2. Keys in
/etc/apt/trusted.gpg.d/
Remove any keys related to Albert in
/etc/apt/trusted.gpg.d/
. Note that, depending on the snippet you used to install albert, this keys may have obscure names. If you used the snipped on the official software center at OBS, the file is likely to have the namehome_manuelschneid3r.gpg
.3. Sources list
apt
will now refuse to work with the errorIf you want to keep albert, you can fetch a new key now. This is exactly what you did when you initially installed albert. Visit the OBS software center for the code snippet.
If you dont need albert anymore, remove the repository from your sources by removing either the relevant line in
/etc/apt/sources.list
or the file/etc/apt/sources.list.d/home:manuelschneid3r.list
, depending on how you installed albert.You're done. Have fun using albert ?
I had the same issue. In my case, in the same directory /etc/apt/trusted.gpg.d I had .asc file just named differently. Once I renamed the .asc file by chaning its extension I was able to add Docker's gpg keys.