Audit: The sources.list(5) entry for 'https://deb.debian.org/debian' should be upgraded to deb822 .sources
Audit: Missing Signed-By in the sources.list(5) entry for 'https://deb.debian.org/debian'
Audit: The sources.list(5) entry for 'https://deb.debian.org/debian' should be upgraded to deb822 .sources
Audit: Missing Signed-By in the sources.list(5) entry for 'https://deb.debian.org/debian'
Audit: The sources.list(5) entry for 'https://deb.debian.org/debian-security' should be upgraded to deb822 .sources
Audit: Missing Signed-By in the sources.list(5) entry for 'https://deb.debian.org/debian-security'
Audit: The sources.list(5) entry for 'https://deb.debian.org/debian' should be upgraded to deb822 .sources
Audit: Missing Signed-By in the sources.list(5) entry for 'https://deb.debian.org/debian'
Audit: The sources.list(5) entry for 'https://dietpi.com/apt' should be upgraded to deb822 .sources
Audit: Missing Signed-By in the sources.list(5) entry for 'https://dietpi.com/apt'
Audit: Consider migrating all sources.list(5) entries to the deb822 .sources format
Audit: The deb822 .sources format supports both embedded as well as external OpenPGP keys
Audit: See apt-secure(8) for best practices in configuring repository signing.
Audit: Some sources can be modernized. Run 'apt modernize-sources' to do so.
Some sources can be modernized. Run 'apt modernize-sources' to do so.
Is that recommended to do that?
I run these services:
[ OK ] DietPi-Services | nmbd active (running) since Mon 2025-11-24 11:55:11 CET; 18h ago
[ OK ] DietPi-Services | smbd active (running) since Mon 2025-11-24 11:55:11 CET; 18h ago
[ OK ] DietPi-Services | roonserver active (running) since Mon 2025-11-24 11:55:11 CET; 18h ago
[ OK ] DietPi-Services | cron active (running) since Mon 2025-11-24 11:55:11 CET; 18h ago
[ OK ] DietPi-Services | dropbear active (running) since Mon 2025-11-24 11:53:18 CET; 18h ago
[ INFO ] DietPi-Services | dietpi-vpn inactive (dead)
[ INFO ] DietPi-Services | dietpi-cloudshell inactive (dead)
[ OK ] DietPi-Services | dietpi-dashboard active (running) since Mon 2025-11-24 11:53:18 CET; 18h ago
[ OK ] DietPi-Services | dietpi-ramlog active (exited) since Mon 2025-11-24 11:52:45 CET; 18h ago
[ OK ] DietPi-Services | dietpi-preboot active (exited) since Mon 2025-11-24 11:52:45 CET; 18h ago
[ OK ] DietPi-Services | dietpi-postboot active (exited) since Mon 2025-11-24 11:53:18 CET; 18h ago
[ INFO ] DietPi-Services | dietpi-wifi-monitor inactive (dead)
Sometimes afterwards, apt update gave a message Notice: Missing Signed-By in the sources.list(5) entry for 'https://deb.debian.org/debian'
The reason for this then was that in the file /etc/apt/sources.list.d/debian-backports.sources
there was the line Signed-By: empty.
I had to change it to Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
and then all worked fine (i.e. the identical entry as in the file debian.sources).
The file /usr/share/keyrings/debian-archive-keyring.gpg should exist (at least a logical link of that name) on your system.
deb https://deb.debian.org/debian/ trixie main contrib non-free non-free-firmware
deb https://deb.debian.org/debian/ trixie-updates main contrib non-free non-free-firmware
deb https://deb.debian.org/debian-security trixie-security main contrib non-free non-free-firmware
deb https://deb.debian.org/debian/ trixie-backports main contrib non-free non-free-firmware
root@DietPi:~# apt modernize-sources
The following files need modernizing:
- /etc/apt/sources.list
- /etc/apt/sources.list.d/dietpi.list
Modernizing will replace .list files with the new .sources format,
add Signed-By values where they can be determined automatically,
and save the old files into .list.bak files.
This command supports the 'signed-by' and 'trusted' options. If you
have specified other options inside [] brackets, please transfer them
manually to the output files; see sources.list(5) for a mapping.
For a simulation, respond N in the following prompt.
Rewrite 2 sources? [Y/n]
Simulating only...
Modernizing /etc/apt/sources.list...
# Would write to: /etc/apt/sources.list.d/debian.sources
# Modernized from /etc/apt/sources.list
Types: deb
URIs: https://deb.debian.org/debian/
Suites: trixie
Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
# Would write to: /etc/apt/sources.list.d/debian.sources
# Modernized from /etc/apt/sources.list
Types: deb
URIs: https://deb.debian.org/debian/
Suites: trixie-updates
Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
# Would write to: /etc/apt/sources.list.d/debian.sources
# Modernized from /etc/apt/sources.list
Types: deb
URIs: https://deb.debian.org/debian-security/
Suites: trixie-security
Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
# Would write to: /etc/apt/sources.list.d/debian-backports.sources
# Modernized from /etc/apt/sources.list
Types: deb
URIs: https://deb.debian.org/debian/
Suites: trixie-backports
Components: main contrib non-free non-free-firmware
Signed-By:
Warning: Could not determine Signed-By for URIs: https://deb.debian.org/debian/, Suites: trixie-backports
Modernizing /etc/apt/sources.list.d/dietpi.list...
# Would write to: /etc/apt/sources.list.d/dietpi.sources
Types: deb
URIs: https://dietpi.com/apt/
Suites: trixie
Components: main
Signed-By: /etc/apt/trusted.gpg.d/dietpi.asc
There is a warning:
Warning: Could not determine Signed-By for URIs: https://deb.debian.org/debian/, Suites: trixie-backports
As far as I know, it is not necessary to switch to modernize-sources at this point, and there is no real reason to do so. Furthermore, the DietPi scripts expect the “old” apt source files, and using modernize-sources can lead to “challenges.” We have already had a few cases where this caused problems. @MichaIng can certainly explain this better.
Right, please revert anything apt modernize-sources did, it will cause issues, duplicate lists, missing updates/fixes, failing distro upgrades etc.
We will add support at some point and then migrate the lists we manage correctly. No need/reason/benefit to do this manually.
EDIT: @TRHH did it really split the Debian repo lists like that into individual blocks for each suite? This breaks one of the main benefits the DEB822 format has, hence I am wondering. Debian lists should be possible like that, with only 2 blocks, since there are only two different URLs:
Types: deb
URIs: https://deb.debian.org/debian
Suites: trixie trixie-updates trixie-backports
Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-trixie-automatic.gpg
Types: deb
URIs: https://deb.debian.org/debian-security
Suites: trixie-security
Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-trixie-security-automatic.gpg
No, this was just the conversion to DEB822 I was expecting. But indeed, it does a very bad job, no idea why:
Modernizing /etc/apt/sources.list...
# Would write to: /etc/apt/sources.list.d/moved-from-main.sources
# Modernized from /etc/apt/sources.list
Types: deb
URIs: https://deb.debian.org/debian/
Suites: trixie
Components: main contrib non-free non-free-firmware
Signed-By:
# Would write to: /etc/apt/sources.list.d/moved-from-main.sources
# Modernized from /etc/apt/sources.list
Types: deb
URIs: https://deb.debian.org/debian/
Suites: trixie-updates
Components: main contrib non-free non-free-firmware
Signed-By:
# Would write to: /etc/apt/sources.list.d/moved-from-main.sources
# Modernized from /etc/apt/sources.list
Types: deb
URIs: https://deb.debian.org/debian-security/
Suites: trixie-security
Components: main contrib non-free non-free-firmware
Signed-By:
# Would write to: /etc/apt/sources.list.d/moved-from-main.sources
# Modernized from /etc/apt/sources.list
Types: deb
URIs: https://deb.debian.org/debian/
Suites: trixie-backports
Components: main contrib non-free non-free-firmware
Signed-By:
That is a pretty inefficient “modernization”. That multiple suites are possible per block, instead of previously only 1 suite per line (duplicating the components), is one of the arguments for this new format. It however almost only applies to the Debian repo itself, while 3rd party repos almost never use multiple suites anyway. And then this apt modernize-sources does not even make use of this possibility but creates an own block for every suite instead. Just tested on Forky, and it has not become better. Hence 4 lines become 24 lines . However, as said, we will do this via dietpi-update once our scripts support it, making use of the DEB822 formatting features.
For you to revert:
Delete all *.sources files
Restore all *.bak files
There is a /etc/apt/sources.list.bak as well, right?
deb https://deb.debian.org/debian/ trixie main contrib non-free non-free-firmware
deb https://deb.debian.org/debian/ trixie-updates main contrib non-free non-free-firmware
deb https://deb.debian.org/debian-security trixie-security main contrib non-free non-free-firmware
deb https://deb.debian.org/debian/ trixie-backports main contrib non-free non-free-firmware
Exactly what it says there. Delete all *.sources files and rename the *.bak files, like removing the *.bak at the end so that they are pure *.list files again.
/ etc / apt / sources.list.d / dietpi.list
deb https://dietpi.com/apt trixie main
/ etc / apt / sources.list
deb https://deb.debian.org/debian/ trixie main contrib non-free non-free-firmware
deb https://deb.debian.org/debian/ trixie-updates main contrib non-free non-free-firmware
deb https://deb.debian.org/debian-security trixie-security main contrib non-free non-free-firmware
deb https://deb.debian.org/debian/ trixie-backports main contrib non-free non-free-firmware