[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: testing apt upgrade 2.9.23 to 2.9.26 changes to sources.list



On Thu, Feb 06, 2025 at 10:22:17AM -0500, The Wanderer wrote:
I haven't seen this hit yet (though I probably will next time I
dist-upgrade against testing), but a comment in bug #1094263 leads me to
suspect that there is now supposed to be an 'apt modernize-sources'
sub-command, which looks like it might be intended to make this type of
conversion.

...except that, per the rest of the discussion in that bug, it almost
certainly won't be able to predict which signer to apply for each
sources.list entry. That you'll probably have to add on your own.

It even tells you that!

# apt modernize-sources
The following files need modernizing:
  - /etc/apt/sources.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 1 sources? [Y/n] Modernizing /etc/apt/sources.list...
- Writing /etc/apt/sources.list.d/debian.sources


Reply to: