The last update of ‘apt’ package returns with an issue like that:
W: https://repo.sparkylinux.org/dists/core/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
It means, signing repos via ‘apt-key’ in the:
/etc/apt/trusted.gpg
file is deprecated now.
How to fix it?
Simply make system upgrade, specially the ‘sparky-apt’ and ‘sparky-apt-unstable’ (if installed) packages of the Sparky 6 & 7:
sparky-upgrade
The fix changes the Sparky repos list to (example):
deb [signed-by=/usr/share/keyrings/sparky.gpg.key] https://repo.sparkylinux.org/ core main
deb-src [signed-by=/usr/share/keyrings/sparky.gpg.key] https://repo.sparkylinux.org/ core main
Make sure it removes your Sparky mirror list if you use it, simply put it back after upgrading is finished.
You can also remove the present ‘sparky.gpg.key’ stored by ‘apt-key’ by the command:
sudo apt-key del C40956B8
and the old ‘sparkylinux.gpg.key’ if still installed:
sudo apt-key del D117204E
To make sure is everything ok, after upgrade, run:
sudo apt update
This upgrade does not change the Sparky repos public key, but only a way of signing repos.
Sparky Wiki pages of Sparky repos have been also updated:
https://wiki.sparkylinux.org/doku.php/repository
If you find any problem post it at our forums, please.