Score:0

gpg: My PPA setup is causing DEPRECATION Warning, Manage keyring files in trusted.gpg.d instead

mx flag
xpt

My PPA setup is causing DEPRECATION Warning:

W: http://ppa.launchpad.net/myid/ppa/ubuntu/dists/focal/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

and

I know superficially it can be fixed with apt-key deprecation warning when updating system

But my question is how to setup my PPA source so that it is not causing such DEPRECATION Warning in the first place.

The answer in apt-key deprecation warning when updating system still uses apt-key:

sudo apt-key export 91E7EE5E | sudo gpg --dearmour -o /etc/apt/trusted.gpg.d/team-xbmc.gpg

which gives the Warning of:

Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).

How can I prepare my PPA repo keys directly from a keyserver instead going through apt-key?

I tried

gpg --keyserver keyserver.ubuntu.com --recv-keys 91E7EE5E --dearmour -o /tmp/ppa.gpg

But it only imported to my own ~/.gnupg/pubring.kbx file, instead of writing to /tmp/ppa.gpg.

gpg --export --keyserver keyserver.ubuntu.com --recv-keys 91E7EE5E | sudo gpg --dearmour -o /tmp/ppa.gpg

is not doing what I want either.

And finally, how can I verify the final /tmp/ppa.gpg file, hopefully to get an output just like:

pub   rsa4096 2017-05-08 [SCEA]
      1EDD E2CD FC02 5D17 F6DA  9EC0 ADAE 6AD2 8A8F 901A
uid           [ unknown] Sublime HQ Pty Ltd <[email protected]>
sub   rsa4096 2017-05-08 [S]
mx flag
xpt
Found the answer: https://askubuntu.com/a/1458126/843820
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.