apt sources list different versions?

Message
Author
User avatar
BV206
Posts: 475
Joined: Sat Mar 09, 2019 10:55 am

apt sources list different versions?

#1 Post by BV206 »

I had problems installing winehq-staging from the test repo.
viewtopic.php?t=78865
Now it's up to v 9.2 so I tried it again and ran into the same problems except now it won't install at all.

This time I purged everything like before, then added the winehq.org keyring and repo per the instructions at https://wiki.winehq.org/Debian and winehq-staging installed with no problems.

Then I noticed something strange. It makes a different kind of sources.list file called
/etc/apt/sources.list.d/winehq-bookworm.sources
instead of one ending in .list. It has more contents than a .list file.

Code: Select all

Types: deb
URIs: https://dl.winehq.org/wine-builds/debian
Suites: bookworm
Components: main
Architectures: amd64 i386
Signed-By: /etc/apt/keyrings/winehq-archive.key
All the Debian, MX, Google Earth and Brave Browser sources.list files in
/etc/apt/sources.list.d/
show up in MX Repo Manager but wine does not. Why not? Is this something new with Debian that isn't compatible with MX?

User avatar
fehlix
Developer
Posts: 12623
Joined: Wed Apr 11, 2018 5:09 pm

Re: apt sources list different versions?

#2 Post by fehlix »

BV206 wrote: Tue Feb 13, 2024 1:05 pm All the Debian, MX, Google Earth and Brave Browser sources.list files in
/etc/apt/sources.list.d/
show up in MX Repo Manager but wine does not. Why not? Is this something new with Debian that isn't compatible with MX?
There is nothing strange about those *.sources files.
This is "the "newer" deb-822 format, which is well known.
Both types the one-line list-type and the deb-822 source-type can hold
the same kind of informations.
So in this example both files can be read by apt and apt based tools (e.g like nala, or synaptic):
The winhq sources-file within the deb833-format:
/etc/apt/sources.list.d/winehq-bookworm.sources

Code: Select all

Types: deb
URIs: https://dl.winehq.org/wine-builds/debian
Suites: bookworm
Components: main
Architectures: amd64 i386
Signed-By: /etc/apt/keyrings/winehq-archive.key
is identical equivalent to the list within the one-line format
/etc/apt/sources.list.d/winehq-bookworm.list:

Code: Select all

deb [arch=amd64,i386 signed-by=/etc/apt/keyrings/winehq-archive.key] https://dl.winehq.org/wine-builds/debian bookworm main
You can read more about the differences of formats within

Code: Select all

man sources.list
And yes, your observation is correct MX Repo Manager does currently not handle sources files within the "newer" deb-822 style format:
mx-repo-manager-list.jpg
To add:
And yes, also synaptic seems not to recognize deb822-style sources within it's displayed repository list:
synaptic-repo-list.jpg
Whereas QSI / inxi does report the deb822.sources, but displayed as one-line format:

Code: Select all

  Active apt repos in: /etc/apt/sources.list.d/winehq-bookworm.sources
    1: deb [arch=amd64 i386] https://dl.winehq.org/wine-builds/debian bookworm main
but omitting the signed-by options field, and the arch= options is not properly formatted within the inxi report should be "arch=amd64,i386" (comma separated arch's)
You do not have the required permissions to view the files attached to this post.

User avatar
masinick
Posts: 52
Joined: Sat May 05, 2007 1:37 am

Re: apt sources list different versions?

#3 Post by masinick »

I hope you do not object to "barging in" on a thread that's close to a year old now, but it seems to me that things may have changed a bit.
I've been experimenting with this because it also came up in the antiX forum, and deb822 format appears to be working somewhat better.
For one thing the LibreWolf repository moved to it earlier this year; I changed my stable Debian repo to the deb822 format and both are working with apt and synaptic.

Could you perform some testing and observe whether your previous comments about "synaptic seems not to recognize deb822-style sources within it's displayed repository list" still apply with MX Linux? It's possible that this is working better, but I'm not a developer in any forum, so I don't want to make any claims, I've just seen some progress in this space, just in the past year.

User avatar
masinick
Posts: 52
Joined: Sat May 05, 2007 1:37 am

Re: apt sources list different versions?

#4 Post by masinick »


User avatar
masinick
Posts: 52
Joined: Sat May 05, 2007 1:37 am

Re: apt sources list different versions?

#5 Post by masinick »

Another explanatory reference for readers:
https://blobfolio.com/2022/deb822-and-apt-key/

User avatar
fehlix
Developer
Posts: 12623
Joined: Wed Apr 11, 2018 5:09 pm

Re: apt sources list different versions?

#6 Post by fehlix »

masinick wrote: Sat Jan 25, 2025 4:26 pm I hope you do not object to "barging in" on a thread that's close to a year old now, but it seems to me that things may have changed a bit.
I've been experimenting with this because it also came up in the antiX forum, and deb822 format appears to be working somewhat better.
For one thing the LibreWolf repository moved to it earlier this year; I changed my stable Debian repo to the deb822 format and both are working with apt and synaptic.

Could you perform some testing and observe whether your previous comments about "synaptic seems not to recognize deb822-style sources within it's displayed repository list" still apply with MX Linux? It's possible that this is working better, but I'm not a developer in any forum, so I don't want to make any claims, I've just seen some progress in this space, just in the past year.
I'm using deb822-source list for probably more than year or longer. apt, python apt and nala don't have any issue with deb833-source file format.
But tools to display the sources files, do show some artifacts.E.g. librewolf's sources file
shown here with cat:

Code: Select all

cat /etc/apt/sources.list.d/extrepo_librewolf.sources
Architectures: amd64 arm64
Suites: librewolf
Uris: https://repo.librewolf.net
Types: deb
Components: main
Signed-By: /var/lib/extrepo/keys/librewolf.asc
Now inxi:

Code: Select all

inxi -c0 -r | grep librewolf
  Active apt repos in: /etc/apt/sources.list.d/extrepo_librewolf.sources
    1: deb [arch=amd64 arm64] https://repo.librewolf.net librewolf main
So, inxi tries to convert into classical one-line format, but didn't made it properly, arch= attribute shown wrongly
should be [arch=amd64,arm64]
and the signed by is missing, ok maybe an inxi special to not show signing key.
The other source - file is where I put additional MX-repos, e.g check with inxi -r
all looks correct as displayed as one-line format:

Code: Select all

  Active apt repos in: /etc/apt/sources.list.d/mx-repo-de-hh-fau-bookworm.sources
    1: deb https://mirror.plusserver.com/mxlinux/mxlinux/mx/repo/ bookworm main non-free
    2: deb https://ftp.fau.de/mxlinux-packages/mx/repo bookworm main non-free
    3: deb https://mxlinux.mirror.iphh.net/packages/mx/repo bookworm main non-free
Now synaptic:
synaptic-repos-list.jpg
Within the repo-list synapic presents only the one-line deb-lines, all entries from deb822-source files are not listed,
Those from deb*.list mx.list and from nala-source.list (added nala-added by "nala fetch" for detecting fatsed mirror.) are shown within the picture.
Also did not have checked on trixie or sid, maybe you can provide some feedback whether deb822-sources are properly listed by synaptic.
And more important, wheterh enabling disabling works, which may be tricky to implement on the fairly flexible deb822-format.

OK, for anyone reading this, all apt-based package manger do handle deb822-sources file properly, when it comes
to refresh( apt update) or listing of available packages.
The point is about displaying and potentially enable/disable or editing those source entries.
FWIW: here my full deb-sources file for mx-repos in addtition the one within mx.list:

Code: Select all

cat /etc/apt/sources.list.d/mx-repo-de-hh-fau-bookworm.sources
# MX Linux Repos - bookworm - no AHS 
# file: /etc/apt/sources.list.d/mxrepo-de-hh-bookworm.sources
#Enabled:    no
Types:      deb
            deb-src
URIs:       
#           https://ftp.fau.de/mxlinux-packages/mx/repo/
#           http://it.mxrepo.com/mx/repo
#           http://nl.mxrepo.com/mx/repo
            https://mirror.plusserver.com/mxlinux/mxlinux/mx/repo/
            https://ftp.fau.de/mxlinux-packages/mx/repo
            https://mxlinux.mirror.iphh.net/packages/mx/repo
#           http://ftp.halifax.rwth-aachen.de/mxlinux/packages/mx/repo
#           http://la.mxrepo.com/mx/repo
#           https://mxrepo.com/mx/repo
Suites:     bookworm
Components: main non-free
#ahs

#MX Linux Test-Repo
Enabled:    no
Types:      deb
#           deb-src
URIs:
#           http://nl.mxrepo.com/mx/testrepo
            https://mirror.plusserver.com/mxlinux/mxlinux/mx/testrepo/
            https://ftp.fau.de/mxlinux-packages/mx/testrepo
            https://mxlinux.mirror.iphh.net/packages/mx/testrepo
#           https://mxrepo.com/mx/testrepo
Suites:     bookworm
Components: test

# MX Linux AHS Staging Repos - bookworm
# file: /etc/apt/sources.list.d/mxrepo.nl-hh-ahs-bookworm.sources
Enabled:    no
Types:      deb
URIs:       
            https://mxrepo.com/mx/repo
Suites:     bookworm
Components: ahs-staging

# MX Linux Temp Repo - bookworm
# file: /etc/apt/sources.list.d/mxrepo.nl-hh-ahs-bookworm.sources
Enabled:    no
Types:      deb
URIs:       https://mxrepo.com/mx/repo
Suites:     temp
Components: main
Note: I do have multiple sources mainly to check out nala's feature to fetch/retrieve in parallel from different repos.
You do not have the required permissions to view the files attached to this post.

Post Reply

Return to “Software / Configuration”