Fast and dirty way to solve egacy trusted.gpg keyring DEPRECATION

dirty way , but fast – you must know what you are doing

on the error , this is a sample error , ignore mongo


W: dists/bookworm/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: dists/bookworm/mongodb-org/4.4/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

 

you can simply solve by copy % paste – I love headless solutions –

cp /etc/apt/trusted.gpg /etc/apt/trusted.gpg.d & apt update
Torna in alto