I'm creating a package that will automatically install some repositories to all hosts in the LAN. The package will be accessible from the central repository.
I've discovered that repo lists can be dropped in '/etc/apt/sources.list.d/*.list'. Now I need to import their keys, for instance, this one. However, when I drop it into '/etc/apt/trusted.gpg.d/Opera.gpg', apt-get update
gives me a plenty of NO_PUBKEY
errors for all repos I have, including Opera!
What's wrong? :)
gpg: keyblock resource './Opera.gpg': file open error
andgpg: no writable keyring found: eof
. To make it work, you need to do first:touch Opera.gpg
– Tino Apr 15 '18 at 20:43GPG keybox database
file format as keyring fragment. The file generated by command suggested in this answer actually generate the keybox database instead of key file. – Wang Aug 02 '23 at 11:47