INTERACT FORUM

More => Old Versions => JRiver Media Center 28 for Linux => Topic started by: geier22 on March 01, 2022, 11:08:31 am

Title: apt Warning: Gpg -Key deprecated
Post by: geier22 on March 01, 2022, 11:08:31 am
(debian Testing/ apt 2.4.0)

apt update brings the following message:

Code: [Select]
W: http://dist.jriver.com/latest/mediacenter/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.
the manual says the following:

Quote
If your existing use of apt-key add looks like this:

     
Code: [Select]
wget -qO- https://myrepo.example/myrepo.asc | sudo apt-key add -
       Then you can directly replace this with (though note the recommendation below):

     
Code: [Select]
wget -qO- https://myrepo.example/myrepo.asc | sudo tee /etc/apt/trusted.gpg.d/myrepo.asc
Make sure to use the "asc" extension for ASCII armored keys and the "gpg" extension for the binary OpenPGP
       format (also known as "GPG key public ring"). The binary OpenPGP format works for all apt versions, while the
       ASCII armored format works for apt version >= 1.4.

When I run this, I'm not sure what the correct name of the term myrepo.asc is

apt-key list gives me the following:

Code: [Select]
apt-key list

pub rsa2048 2014-04-17 [SC]
       AFCA BAC2 C6F1 6C0E 1F2D 9707 C30B 25C6 0777 65D5
uid [ unknown ] superid <superid@jriver.com>
sub rsa2048 2014-04-17 [E]

Would that be correct?

Code: [Select]
wget -qO "http://dist.jriver.com/mediacenter@jriver.com.gpg.key"  tee /etc/apt/trusted.gpg.d/XXXX??


I would be grateful for a hint
Title: Re: apt Warning: Gpg -Key deprecated
Post by: geier22 on March 05, 2022, 05:26:37 am
nobody has an idea?

apt-key is deprecated and should be corrected in the manual. Please refer:
https://yabb.jriver.com/interact/index.php/topic,129852.msg900830.html#msg900830
 (https://yabb.jriver.com/interact/index.php/topic,129852.msg900830.html#msg900830)

I only care about the name of the key file in etc/apt/trusted.gpg.d/.
I think the name is important
Title: Re: apt Warning: Gpg -Key deprecated
Post by: BryanC on March 05, 2022, 09:24:02 am
It doesn't matter what the filename is:

Code: [Select]
wget -qO- "http://dist.jriver.com/mediacenter@jriver.com.gpg.key" | sudo tee /etc/apt/trusted.gpg.d/jriver.asc
Title: Re: apt Warning: Gpg -Key deprecated
Post by: geier22 on March 06, 2022, 05:16:48 am
Thanks

The extension *.asc was the solution.
the jriver.com.gpg.key made me think it was a gpg key.
Therefore, error messages came up in various attempts.