• Re: Synaptic and updated apt sources?

    From George at Clug@21:1/5 to All on Fri Feb 7 14:10:01 2025
    On Friday, 07-02-2025 at 19:23 Boyan Penkov wrote:
    Hello,

    After updating my apt sources to the modernized ones, the synaptic
    settings ard preferences are blank (and don't show the usual sources).

    If you could give some more detail, I might understand what you did?

    Do you mean /etc/apt/sources.list ?
    Which version of Debian?
    And what do you mean "modernized ones" ? (where did you see these documented? I may have missed something?)

    My Synaptic works great, but then, I do not think I am using any "modernised ones".

    George.



    Updates and selection though the program still works fine, so I
    imagine this is a small oversight somewhere...

    Cheers!

    --
    Boyan Penkov



    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Joe@21:1/5 to Boyan Penkov on Fri Feb 7 15:00:02 2025
    On Fri, 7 Feb 2025 08:39:03 -0500
    Boyan Penkov <[email protected]> wrote:

    After upgrading apt this week on testing (trixie), it defaults to the
    apt822 sources (https://repolib.readthedocs.io/en/latest/deb822-format.html#deb822-format), which can then be enabled by a ``sudo apt modernize-sources``

    However, in Synaptic, clicking on Settings -> Repositories shows a
    blank list, presumably reading from the old format (it used to edit /etc/apt/sources.list directly).


    Yes, but it still seems to work. Presumably it's using apt, which will
    use whatever sources are available, and we can probably expect the
    repository feature of Synaptic to become able to use either.

    --
    Joe

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From George at Clug@21:1/5 to All on Fri Feb 7 15:20:01 2025
    On Saturday, 08-02-2025 at 00:39 Boyan Penkov wrote:
    After upgrading apt this week on testing (trixie), it defaults to the
    apt822 sources (https://repolib.readthedocs.io/en/latest/deb822-format.html#deb822-format),
    which can then be enabled by a ``sudo apt modernize-sources``

    Thanks for your reply.

    1) I just updated my Debian Trixie computer, synaptic still works (however you already knew it would as I have not installed modernize-sources)

    2) When searching Synaptic I was not able to locate a package called modernize-sources. "# apt-cache search modernize-sources" did not return any packages. I thought it might be a package, but it seems more like it is a command.
    https://gist.github.com/Mealman1551/f75223b3cade0a218d51c06f6cb08f40
    Since February 2025, Debian 13 (Trixie) and APT introduced the deb822 format for managing APT sources. This new format replaces the traditional /etc/apt/sources.list file with the more structured and readable /etc/apt/sources.list.d/debian.sources file.

    This change was introduced by APT, starting with an update that enabled users to run:

    apt modernize-sources

    https://tracker.debian.org/news/1610313/accepted-apt-2926-source-into-unstable/
    [ Julian Andres Klode ]
    * apt: Introduce the modernize-sources command
    * Make notices about .list sources without signed-by less obnoxious
    You get a single line telling you about modernize-sources now, unless
    you run --audit (or have deb822 files without Signed-By).


    3) I suspect that your issue would indicate that Debian Trixie's Synaptic program has not been updated to use the new method for managing source lists (which I believe you are trying to point out by posting this issue)? Or maybe an issue with sign-by ?

    4) Do you know of any method to "undo" this modernization?

    Thanks for alerting me to this issue, as I will be sure not to run modernize-sources until this issue is resolved.

    George





    However, in Synaptic, clicking on Settings -> Repositories shows a
    blank list, presumably reading from the old format (it used to edit /etc/apt/sources.list directly).

    Cheers!

    On Fri, Feb 7, 2025 at 8:05 AM George at Clug <[email protected]> wrote:



    On Friday, 07-02-2025 at 19:23 Boyan Penkov wrote:
    Hello,

    After updating my apt sources to the modernized ones, the synaptic settings ard preferences are blank (and don't show the usual sources).

    If you could give some more detail, I might understand what you did?

    Do you mean /etc/apt/sources.list ?
    Which version of Debian?
    And what do you mean "modernized ones" ? (where did you see these documented? I may have missed something?)

    My Synaptic works great, but then, I do not think I am using any "modernised ones".

    George.



    Updates and selection though the program still works fine, so I
    imagine this is a small oversight somewhere...

    Cheers!

    --
    Boyan Penkov





    --
    Boyan Penkov


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to George at Clug on Fri Feb 7 15:30:01 2025
    On Sat, Feb 08, 2025 at 01:13:28 +1100, George at Clug wrote:
    On Saturday, 08-02-2025 at 00:39 Boyan Penkov wrote:
    After upgrading apt this week on testing (trixie), it defaults to the apt822 sources (https://repolib.readthedocs.io/en/latest/deb822-format.html#deb822-format),
    which can then be enabled by a ``sudo apt modernize-sources``

    Thanks for your reply.

    1) I just updated my Debian Trixie computer, synaptic still works (however you already knew it would as I have not installed modernize-sources)

    You don't "install modernize-sources". The command did not say
    "sudo apt install modernize-sources".

    It said "sudo apt modernize-sources".

    modernize-sources is a subcommand of apt.

    2) When searching Synaptic I was not able to locate a package called modernize-sources.

    It's not a package. It's a subcommand of apt, like "install" or "search"
    or "policy".

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dan Ritter@21:1/5 to George at Clug on Fri Feb 7 15:50:01 2025
    George at Clug wrote:

    4) Do you know of any method to "undo" this modernization?

    You can do it by hand, or write a small script to produce the
    one-line format from the deb822 format.

    Here's one I haven't tested:
    https://github.com/ErikMichelson/apt-deb822-tool


    -dsr-

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Charles Curley@21:1/5 to Dan Ritter on Fri Feb 7 17:00:01 2025
    On Fri, 7 Feb 2025 09:26:13 -0500
    Dan Ritter <[email protected]> wrote:

    4) Do you know of any method to "undo" this modernization?

    You can do it by hand, or write a small script to produce the
    one-line format from the deb822 format.

    Even simpler and less error prone is to copy the backup files created
    during the modernization back to their original names. E.g:

    cd /etc/apt
    cp -p sources.list.bak sources.list

    and then get rid of the modernized files:

    find -type f -iname '*.sources' | xargs rm

    --
    Does anybody read signatures any more?

    https://charlescurley.com
    https://charlescurley.com/blog/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Joe@21:1/5 to George at Clug on Fri Feb 7 17:40:01 2025
    On Sat, 08 Feb 2025 01:13:28 +1100
    George at Clug <[email protected]> wrote:



    4) Do you know of any method to "undo" this modernization?

    Thanks for alerting me to this issue, as I will be sure not to run modernize-sources until this issue is resolved.

    apt modernize-sources renames and keeps /etc/apt/sources.list, so you
    can rename it back and rename any xxxx.sources in
    /etc/apt/sources.list.d to something that doesn't end in '.sources'.

    One day sources.list will stop working, but I've seen suggestions that
    it will be 2029 before that happens. But apt now complains if the
    signing key is not specified in sources.list (or xxxx.sources), so I
    suspect you will need to fix that sooner.

    --
    Joe

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From George at Clug@21:1/5 to All on Sat Feb 8 00:50:01 2025
    On Saturday, 08-02-2025 at 01:35 Boyan Penkov wrote:
    Hello George,

    No problem -- and to be clear, as Joe pointed out, it's not clear that there's actually an issue that would warrant *not* running
    modernize-sources; synaptic does work fine, just won't show you the
    relevant sources.

    Thanks for pointing that out.

    I expect Synaptic will be updated in the near future, and then there will be no issues at all. I am please the issue was reported, just in case it had not been picked up by the Synaptic team.

    One thing I like about Debian, is Apt.

    George.


    Cheers!

    On Fri, Feb 7, 2025 at 9:13 AM George at Clug <[email protected]> wrote:



    On Saturday, 08-02-2025 at 00:39 Boyan Penkov wrote:
    After upgrading apt this week on testing (trixie), it defaults to the apt822 sources (https://repolib.readthedocs.io/en/latest/deb822-format.html#deb822-format),
    which can then be enabled by a ``sudo apt modernize-sources``

    Thanks for your reply.

    1) I just updated my Debian Trixie computer, synaptic still works (however you already knew it would as I have not installed modernize-sources)

    2) When searching Synaptic I was not able to locate a package called modernize-sources. "# apt-cache search modernize-sources" did not return any packages. I thought it might be a package, but it seems more like it is a command.
    https://gist.github.com/Mealman1551/f75223b3cade0a218d51c06f6cb08f40
    Since February 2025, Debian 13 (Trixie) and APT introduced the deb822 format for managing APT sources. This new format replaces the traditional /etc/apt/sources.list file with the more structured and readable /etc/apt/sources.list.d/debian.sources
    file.

    This change was introduced by APT, starting with an update that enabled users to run:

    apt modernize-sources

    https://tracker.debian.org/news/1610313/accepted-apt-2926-source-into-unstable/
    [ Julian Andres Klode ]
    * apt: Introduce the modernize-sources command
    * Make notices about .list sources without signed-by less obnoxious
    You get a single line telling you about modernize-sources now, unless
    you run --audit (or have deb822 files without Signed-By).


    3) I suspect that your issue would indicate that Debian Trixie's Synaptic program has not been updated to use the new method for managing source lists (which I believe you are trying to point out by posting this issue)? Or maybe an issue with sign-by
    ?

    4) Do you know of any method to "undo" this modernization?

    Thanks for alerting me to this issue, as I will be sure not to run modernize-sources until this issue is resolved.

    George





    However, in Synaptic, clicking on Settings -> Repositories shows a
    blank list, presumably reading from the old format (it used to edit /etc/apt/sources.list directly).

    Cheers!

    On Fri, Feb 7, 2025 at 8:05 AM George at Clug <[email protected]> wrote:



    On Friday, 07-02-2025 at 19:23 Boyan Penkov wrote:
    Hello,

    After updating my apt sources to the modernized ones, the synaptic settings ard preferences are blank (and don't show the usual sources).

    If you could give some more detail, I might understand what you did?

    Do you mean /etc/apt/sources.list ?
    Which version of Debian?
    And what do you mean "modernized ones" ? (where did you see these documented? I may have missed something?)

    My Synaptic works great, but then, I do not think I am using any "modernised ones".

    George.



    Updates and selection though the program still works fine, so I imagine this is a small oversight somewhere...

    Cheers!

    --
    Boyan Penkov





    --
    Boyan Penkov




    --
    Boyan Penkov



    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)