[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt-key deprecation.



On Sat, Mar 05, 2022 at 08:31:46PM +0100, Erwan David wrote:
> Le 05/03/2022 à 20:04, Cindy Sue Causey a écrit :
> > On 3/5/22, Erwan David <erwan@rail.eu.org> wrote:
> > > Hi,
> > > 
> > > When I update my packages I get the warning :
> > > 
> > > W:
> > > https://download.virtualbox.org/virtualbox/debian/dists/buster/InRelease:
> > > Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see
> > > the DEPRECATION section in apt-key(8) for details.
> > > 
> > > I looked at section DEPRECATION in apt-key, but did not find how I can
> > > extract those keys from /etc/apt/trusted.gpg and put them in trusted.gpg.d
> > > 
> > > What would be the easier way ?
> > 
> 
> Yes I already saw this but
> 
> 1) How do I extract keys from /etc/apt/trusted.gpg ?

This is a gpg keyring. You can list the keys therein like so:

  gpg --list-keys --no-default-keyring --keyring /etc/apt/trusted.gpg

You can export some or all with --export; if you want them in
their ASCII "flavour", you also add --armor.

  gpg --armor --no-default-keyring --keyring /etc/apt/trusted.gpg --export dev@jitsi.org > keys.out

(where this `dev@jitsi.org' stands for one of the IDs you have
seen above, with --list).

As to your other questions... I'll leave them to those who know
more :)

Cheers
-- 
t

Attachment: signature.asc
Description: PGP signature


Reply to: