Apt install gives error when using the curl - s command

Hi all,

This is the error I get when trying to run the apt install command. What could I try to resolve this? Thank you.

$ curl -s https://syncthing.net/release-key.txt | sudo apt-key add - [sudo] password for user:

gpg: invalid key resource URL '/etc/apt/trusted.gpg.d/home:selmf.gpg'
gpg: keyblock resource '(null)': General error
gpg: key 3F3411BE43F8BC1F: 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: key D26E6ED000654A3E: 1 signature not checked due to a missing key
gpg: Total number processed: 15
gpg:       skipped new keys: 15

Those errors look like they’re more about a broken gpg setup than our new key. I’m not sure how to resolve them.

1 Like

Thanks for your answer. Is this something to do with my computer specifically? I can definitely do a hunt. I’ll have to see what a GPG setup is :slight_smile:

OK fixed.

I ran this:

/etc/apt/trusted.gpg.d$ sudo rm home\:selmf.gpg

That removed the existing file (maybe damaged?) and allowed me to run the command again and it worked.

I got the tip from here for anyone in the future : https://serverfault.com/questions/1022078/ubuntu-add-repo-app-key-fails

Thanks again /u/calmh. That sent me in the right direction.

All the best…

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.