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

Instructions for Debian 12 (Bookworm) should be in deb822 format #519

Open
4wk- opened this issue Aug 14, 2024 · 2 comments
Open

Instructions for Debian 12 (Bookworm) should be in deb822 format #519

4wk- opened this issue Aug 14, 2024 · 2 comments

Comments

@4wk-
Copy link

4wk- commented Aug 14, 2024

Starting with Bookworm, it's recommended to write apt sources files in deb822 format.

Instead of actual documentation:

vi /etc/apt/sources.list.d/bookworm-backports.list

deb http://deb.debian.org/debian bookworm-backports main contrib
deb-src http://deb.debian.org/debian bookworm-backports main contrib

It should be:

vi /etc/apt/sources.list.d/bookworm-backports.sources

Types: deb deb-src
URIs: http://deb.debian.org/debian
Suites: bookworm-backports
Components: main contrib
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg

--
Working as expected:

# apt-cache madison zfsutils-linux
zfsutils-linux | 2.2.4-1~bpo12+1 | http://deb.debian.org/debian bookworm-backports/contrib amd64 Packages
@gmelikov
Copy link
Member

While I'm not against it, traditional format is still used and not explicitly described as deprecated.

Fun thing is that even weekly build https://cdimage.debian.org/cdimage/weekly-live-builds/amd64/iso-hybrid/ use traditional format for /etc/apt/sources.list

I propose to leave it as is for now for ease of usage (copy-pasting).

@4wk-
Copy link
Author

4wk- commented Aug 19, 2024

You're right; even on a fresh "netinstall" Debian image, /etc/apt/sources.list file is still written in regular syntax (not deb822).
I guess /etc/apt/sources.list.d/debian.sources file is packed with Docker bookworm image (a bit "early" :))

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

2 participants