Post

apt-key depreciation warning when update package

apt-key depreciation warning when update package

When do apt update, there is a warning about apt-key depreciation

1
sudo apt update

Output

1
W: http://archive.raspberrypi.org/debian/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.

Solution:

Run this command

1
sudo cp /etc/apt/trusted.gpg /etc/apt/trusted.gpg.d

Do sudo apt update again to confirm the deprciation warning is not shown anymore.

This post is licensed under CC BY 4.0 by the author.