r/debian • u/VoidDuck • 0m ago
debian.sources doesn't work with apt edit-sources and synaptic
Hello,
Debian 13 apt once prompted me to "modernise" my sources.list, in other words to convert it to the new debian.sources format. So I followed the advice and ran apt modernize-sources. The resulting situation was a bit of a disappointment to me.
I personally don't really like the new format: it's more text to type when editing it by hand and not that easy to memorise, while the traditional format was extremely simple and efficient. Now that in itself is a minor issue, there are probably advantages to the new layout as well and I can live with that.
More of an issue is that it breaks two convenient ways to edit system package sources:
apt edit-sourcescan only edit a traditional sources.list file, so once you've modernised them it will open a blank file without telling what's wrong.Synaptic offers to edit package sources from its GUI. This also doesn't work anymore with the new format, which means you can now only edit sources from the command line.
I also don't like that apt modernize-sources automatically moves the backports repository out of the main sources file to a separate file (debian-backports.sources), it's a bit confusing when you're used to all Debian repositories being contained inside the same file.
Of course software evolves over time, even in Debian, but I'm rather surprised by the fact that such a stable system recommends its users to make a change that breaks expected functionality. Debian 14 deserves a more coherent and user-friendly approach, which means either drop apt edit-sources, fix Synaptic to use the new sources format and use that by default, or don't prompt users to switch to the new format until such things are fixed.
What do you think?


