On 2025-12-18 17:23, Charles Curley wrote:
On Thu, 18 Dec 2025 18:13:53 +0100
Nicolas Kovacs <[email protected]> wrote:
I understand there's a new repository definition standard, according
to the example in /usr/share/doc/apt/examples.
If I understand this right, I can just copy the example file over to
/etc/apt/sources.list.d and then rename or remove the "classic"
/etc/apt/sources.list file created by the installer. (Correct me if
I'm wrong.)
Correct. I believe at this point it is optional, but that could change
in the future.
Plop the example into /etc/apt/sources.list.d, as usual. Then run
apt modernize-sources
It will show you what it will do, and then ask for confirmation.
I can't help you with Ansible, though.
Making the debian.sources file first results in it having duplicate
entries here.
"apt modernize-sources" probably takes care of things.