Comment 2 for bug 1916485

Revision history for this message
Julian Andres Klode (juliank) wrote : Re: apt-key add fails in docker - Fails to run gnupg

This is a feature, not a bug. We worked hard to not require gnupg anymore. apt-key does not work without gnupg (or gpg). It's also deprecated and has been obsoleted over 10 years ago with the introduction of trusted.gpg.d.

The correct thing to do here is to

wget -O /etc/apt/trusted.gpg.d/syncthing.asc https://syncthing.net/release-key.txt

or

wget -O <other path>/syncthing.asc https://syncthing.net/release-key.txt

and add signed-by=<other path>/syncthing.asc to your sources.list entry.