On Thu, 6 Feb 2025 08:09:37 -0700
Charles Curley <charlescur...@charlescurley.com> wrote:

> On Thu, 6 Feb 2025 14:51:17 +0000
> Joe <j...@jretrading.com> wrote:
> 
> > The long-term fix is a file standard.sources root:root 644 in
> > /etc/sources.list.d containing:  
> 
> Is there anything that tells one how to make this conversion? Better
> yet, a script or two to do it for us? There will be a lot of people
> scrambling to convert at the last minute.
> 

I did find a script, but it looked complex enough that I just did it by
hand, I've only got a few repositories. There are various examples of
the .sources file format, I copied one and adjusted to taste.

Here's a formal deb822 description:

https://repolib.readthedocs.io/en/latest/deb822-format.html

Here's a few more bits:

https://forum.siduction.org/index.php?topic=9606.0

This was where I found the script:

https://unix.stackexchange.com/questions/790122/any-shell-script-to-update-to-the-deb822-sources-format

What I didn't notice further down the page was:



Why in the world bother making your own scripts when you can just do

# apt modernize-sources
The following files need modernizing:
  - /etc/apt/sources.list.d/google-chrome-beta.list
  - /etc/apt/sources.list.d/google-earth-pro.list
  - /etc/apt/sources.list.d/jidanni.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.

    Sounds scary.

Fear not.

For a simulation, respond N in the following prompt.
Rewrite 3 sources? [Y/n] N
Simulating only...

    Why didn't you tell us earlier? That would be more productive, you
    know.

They just added it.




-- 
Joe

Reply via email to