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. ** Changed in: apt (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1916485 Title: apt-key add fails in docker - Fails to run gnupg To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1916485/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs