# Apt install gives error when using the curl - s command

**URL:** https://forum.syncthing.net/t/apt-install-gives-error-when-using-the-curl-s-command/15508
**Category:** Support
**Created:** [August 19, 2020, 1:45am UTC](https://forum.syncthing.net/t/apt-install-gives-error-when-using-the-curl-s-command/15508 "2020-08-19T01:45:19Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![poster](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/p/0ea827/32.png) [@poster](https://forum.syncthing.net/u/poster)
#### Post date: [August 19, 2020, 1:45am UTC](https://forum.syncthing.net/t/apt-install-gives-error-when-using-the-curl-s-command/15508/1 "2020-08-19T01:45:19Z")

</div>

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
```

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [August 19, 2020, 5:32am UTC](https://forum.syncthing.net/t/apt-install-gives-error-when-using-the-curl-s-command/15508/2 "2020-08-19T05:32:38Z")

</div>

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

---

<div class="post-metadata">

### Author: ![poster](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/p/0ea827/32.png) [@poster](https://forum.syncthing.net/u/poster)
#### Post date: [August 19, 2020, 5:53am UTC](https://forum.syncthing.net/t/apt-install-gives-error-when-using-the-curl-s-command/15508/3 "2020-08-19T05:53:13Z")

</div>

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 🙂

---

<div class="post-metadata">

### Author: ![poster](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/p/0ea827/32.png) [@poster](https://forum.syncthing.net/u/poster)
#### Post date: [August 19, 2020, 5:59am UTC](https://forum.syncthing.net/t/apt-install-gives-error-when-using-the-curl-s-command/15508/4 "2020-08-19T05:59:15Z")

</div>

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](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…

---

<div class="post-metadata">

### Author: ![system](https://forum-uploads.syncthingcdn.net/original/2X/0/0b50e0a202b22ae6a67190759e8c868805b8ed9f.png) [@system](https://forum.syncthing.net/u/system)
#### Post date: [September 18, 2020, 5:59am UTC](https://forum.syncthing.net/t/apt-install-gives-error-when-using-the-curl-s-command/15508/5 "2020-09-18T05:59:22Z")

</div>

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