On Debian 11 I received a warning when apt upgrade:
Keys stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg) have been deprecated, see the DEPRECATION
section in apt-key(8) for details. The /etc/apt/trusted.gpg.d/debsuryorg-archive.gpg file will be removed in
the next update of the package and you MUST update your APT sources to include
[signed-by=/usr/share/keyrings/debsuryorg-archive-keyring.gpg] directive. See the Debian Wiki for more
information: https://wiki.debian.org/DebianRepository/UseThirdParty#Sources.list_entry
To fix this I downloaded and saved the key to the new location: curl -fsSL https://packages.sury.org/php/apt.gpg | sudo tee /usr/share/keyrings/debsuryorg-archive-keyring.gpg > /dev/null
And upgraded /etc/apt/sources.list.d/php.list to:
deb [signed-by=/usr/share/keyrings/debsuryorg-archive-keyring.gpg] https://packages.sury.org/php/ bullseye main
I think it fixed the issue. Problem is the online instructions still puts the key in the deprecated location thrusted.gpg.d
I got this message from webmin after my last update I think.
debsuryorg-archive-keyring (2025.03.11) unstable; urgency=medium
The /etc/apt/trusted.gpg.d/debsuryorg-archive.gpg global APT key will
been removed in the next update of the package.
The script will try to autodetect whether any APT repository is not
configured with signed-by= directive and will print warning about the
installation of this package.
Hello ID10T, thank you for your information. I have received the same warning. How do I manually add [signed-by=/usr/share/keyrings/debsuryorg-archive-keyring.gpg] to my apt sources lists? And where? In the “/etc/apt/sources.list” file ? Or rather in “/etc/apt/sources.list.d”? And what exactly should the entry look like besides “[signed-by=/usr/share/keyrings/debsuryorg-archive-keyring.gpg]” ?
Perhaps you can define it in a few steps. Thank you for your time.
I took it literally except I did add it to the specific entry like you suggest. I have it on two lines. That said, if my updates fail, I break nothing of value and I have time to fix it.