7

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?

12

I recently had the same issue and fixed it by doing

sudo rm /etc/apt/trusted.gpg.d/home:manuelschneid3r.asc
| improve this answer | |
0

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.

| improve this answer | |
  • To be more precise, use this curl -fsSL https://download.docker.com/linux/ubuntu/gpg > /etc/apt/trusted.gpg.d/docker.asc – nagylzs Jul 10 at 5:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.