Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wiki debian: tell about new deb822 forrmat? #356

Open
sanderjo opened this issue Jan 18, 2025 · 5 comments
Open

wiki debian: tell about new deb822 forrmat? #356

sanderjo opened this issue Jan 18, 2025 · 5 comments

Comments

@sanderjo
Copy link
Contributor

sanderjo commented Jan 18, 2025

pinging @jcfp ... do we need to update https://sabnzbd.org/wiki/installation/install-debian ?

Reason: https://sabnzbd.org/wiki/installation/install-debian tells to change /etc/apt/sources.list but on a fresh debian docker, that file is not there.

https://wiki.debian.org/SourcesList#:~:text=non%2Dfree%2Dfirmware-,The%20equivalent%20entry%20in%20deb822%20style,-under%20/etc/apt tells there is a different format "deb822"

So I followed
https://wiki.debian.org/SourcesList#:~:text=If%20you%20need%20the%20contrib%2C%20non%2Dfree%20and%20non%2Dfree%2Dfirmware%20components%2C%20add%20contrib%C2%A0non%2Dfree%C2%A0non%2Dfree%2Dfirmware%20after%20main.%20For%20example%2C%20for%20Debian%2012/Bookworm%3A

I changed this file like this:

# cat /etc/apt/sources.list.d/debian.sources 
Types: deb
# http://snapshot.debian.org/archive/debian/20250113T000000Z
URIs: http://deb.debian.org/debian
Suites: bookworm bookworm-updates
Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg

Types: deb
# http://snapshot.debian.org/archive/debian-security/20250113T000000Z
URIs: http://deb.debian.org/debian-security
Suites: bookworm-security
Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg

... and that seems to work: I can install sabnzbdplus, including unrar-nonfree UNRAR binary version 6.21.

BTW: I assume deb822 has nothing to do with RFC822 (the format for mail messages)?

@jeffgeorge
Copy link
Member

What specific version of Debian do you have that has this as default? That wasn’t the default last time I checked a bookworm (Debian 12) image, I suspect it might only be on Sid (unstable), maybe becoming the default behavior on Trixie (Debian 13).

@sanderjo
Copy link
Contributor Author

See above: bookworm.

Started with docker run -it -p 8080:8080 debian:latest /bin/bash

@jcfp
Copy link
Member

jcfp commented Jan 19, 2025

That deb822 format for apt sources has been around for a decade or so, but so far I've only ever encountered it on recent installs of ubuntu and derivatives thereof. Looks like they did indeed work on making that the default.

I'm not aware of a similar change in the default style of the sources list on the debian end, at least for an install on actual hardware, although I admit to not really keeping track of that kind of stuff either. It's probably much easier to switch over a docker image to this style; you may want to check the docker file used to see if it somehow opts-in.

As for the sab wiki, we could simply restrict ourselves to 'make sure contrib and non-free are enabled' plus 'add backport repo, install sab from that' and not bother with the specifics too much beyond giving an example or two of valid entries. Even for one-line style apt sources, there was already the choice between editing sources.list directly or adding a new file with the ".list" extension to /etc/apt/sources.list.d/; deb822 format with its ".sources" extension is yet another possibility.

@sanderjo
Copy link
Contributor Author

@jcfp

ubuntu

Interesting: on my fresh Ubuntu 24.04 install, your PPA is already in that deb822 format. And no manual file editing needed for that: I just followed https://sabnzbd.org/wiki/installation/install-ubuntu-repo

sander@zwarte:/etc/apt/sources.list.d$ cat jcfp-ubuntu-ppa-noble.sources 
Types: deb
URIs: https://ppa.launchpadcontent.net/jcfp/ppa/ubuntu/
Suites: noble
Components: main
Signed-By: -----BEGIN PGP PUBLIC KEY BLOCK-----
 .
 mQINBGYoyRQBEADBzz+SNq812oS5ICiGe94sr0/6pexIUFE32LzT7QhZFLB6Nw6o
 UNMZsKseoKQSPhYWR9bpfv8EZM5jXlKiiFgh1i2TxoquG/AG+MZXRTgfeBRz1oAN
 hLjf26b8gushhMN91ZJ08HptABkFDPk64fDhEqHXVGPKPUcsrBouH9/BFYINhuBb

It would be nice if there was a tool / command to add repo's to the Debian and Ubuntu, no matter the underlying format (deb822 or not) ... I tried apt-add-repository non-free and apt-add-repository --component non-free on debian, but that does not result in non-free anywhere in /etc/apt. PEBKAC?

It's probably much easier to switch over a docker image to this style;

IMHO docker is still difficult from CLI because of the map mapping, certainly for users who need an instruction. Even via portainer I find it more difficult than plain repo or the jcfp PPA.

@jcfp
Copy link
Member

jcfp commented Jan 29, 2025

I'm not aware of a similar change in the default style of the sources list on the debian end

Seems there's at least some movement on that front now too, including a conversion tool and a hint at a future deprecation of the one-line format:

I don't know if apt-add-repository even supports debian at all, AFAIK it's an ubuntu tool that isn't even packaged in debian.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants