I’ve seen several posts asking about the Warning when performing “sudo apt update”:
W: https://artifacts.chirpstack.io/packages/4.x/deb/dists/stable/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
I have rectified this as follows:
See the chirpstack key in question:
sudo apt-key list
Export the key:
gpg --no-default-keyring --keyring /etc/apt/trusted.gpg --export --armor 6DBCCA00 > chirpstack.asc
Move it to the appropriate directory:
sudo mv chirpstack.asc /etc/apt/trusted.gpg.d/
Run update again to verify warning is gone:
sudo apt update
So we are migrate the chirpstack signing key from the deprecated trusted.gpg
keyring to the newer /etc/apt/trusted.gpg.d/
directory.
I have only tested this on the 64-bit Raspberry Pi5 / Debian GNU/Linux 12 (bookworm) running Chirpstack v4.7.