New 22.04 install keyring problems and solution

Long time happy user here. I recently had occasion to add a new Syncthing Ubuntu 22.04.3 client, so I followed the steps here:

https://apt.syncthing.net/

But adding the key failed with a permission error:

$ sudo curl -L -o /etc/apt/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg

[…snip…]

Warning: Failed to open the file Warning: /etc/apt/keyrings/syncthing-archive-keyring.gpg: Permission denied 100 1769 100 1769 0 0 4125 0 --:–:-- --:–:-- --:–:-- 4123 curl: (23) Failure writing output to destination

I got around it by issuing these commands separately:

$ sudo wget https://syncthing.net/release-key.gpg

[…snip…]

2023-11-30 15:10:05 (2.48 MB/s) - ‘release-key.gpg’ saved [1769/1769]

/etc/apt/keyrings$ sudo mv release-key.gpg syncthing-archive-keyring.gpg

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