INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: apt Warning: Gpg -Key deprecated  (Read 1879 times)

geier22

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 428
apt Warning: Gpg -Key deprecated
« 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
Logged
Debian Testing x64 (multiarch) Xfce
TEAC UD-H01 - Yamaha A-S1000 /
Midrange- Studiomonitore by FÖÖN
AsRock Z390 Extreme4- Intel Core i9 9900/ 32 GB Ram

geier22

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 428
Re: apt Warning: Gpg -Key deprecated
« Reply #1 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


I only care about the name of the key file in etc/apt/trusted.gpg.d/.
I think the name is important
Logged
Debian Testing x64 (multiarch) Xfce
TEAC UD-H01 - Yamaha A-S1000 /
Midrange- Studiomonitore by FÖÖN
AsRock Z390 Extreme4- Intel Core i9 9900/ 32 GB Ram

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2677
Re: apt Warning: Gpg -Key deprecated
« Reply #2 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
Logged

geier22

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 428
Re: apt Warning: Gpg -Key deprecated
« Reply #3 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.
Logged
Debian Testing x64 (multiarch) Xfce
TEAC UD-H01 - Yamaha A-S1000 /
Midrange- Studiomonitore by FÖÖN
AsRock Z390 Extreme4- Intel Core i9 9900/ 32 GB Ram
Pages: [1]   Go Up