What repositories do I need?

sofasurfer

Active Member
Joined
May 24, 2022
Messages
345
Reaction score
121
Credits
3,041
Google tells me that Debian only comes with free repositories and that to install codex I need to install non-free repositories. My sources.list already has non-free repositories and no free repositories. Here is what google tells me...
Code:
  A Debian installation includes official repositories for free software (main), and optional ones for open-source software with non-free firmware (non-free-firmware), software with non-free components (contrib, non-free), and others like updates and backports. To add codecs, you enable official contrib and non-free repositories by editing /etc/apt/sources.list or by installing a preferred multimedia player like VLC, which automatically installs the necessary codecs
Here is my sources.list...
Code:
See https://wiki.debian.org/SourcesList for more information.
deb http://deb.debian.org/debian trixie main non-free-firmware
deb-src http://deb.debian.org/debian trixie main non-free-firmware

deb http://deb.debian.org/debian trixie-updates main non-free-firmware
deb-src http://deb.debian.org/debian trixie-updates main non-free-firmware

deb http://security.debian.org/debian-security/ trixie-security main non-free>
deb-src http://security.debian.org/debian-security/ trixie-security main non->

# Backports allow you to install newer versions of software made available fo>
deb http://deb.debian.org/debian trixie-backports main non-free-firmware
deb-src http://deb.debian.org/debian trixie-backports main non-free-firmware

What should I add to the sources list?
 


Debian releases before 12 did NOT include non-free repositories by default; but that default changed with 12 & later; you're using 13 which includes non-free sources by default...


You'll find AI tends to give details which are often out of date and no longer valid; which is maybe why you're confused; and correct maybe 80%-90% of the time only.

What I just described relates to SOURCES though, and not software included on a default install. No non-free is included by a default install; so you can add it yourself if you choose to.
 
You'll find AI tends to give details which are often out of date and no longer valid; which is maybe why you're confused; and correct maybe 80%-90% of the time only.
I would not consider AI that accurate, like any screen scraper [and that's all they currently are] the accuracy of the answer is directly tied to the quality of the question
 
deb http://deb.debian.org/debian trixie main non-free-firmware

The quoted repositories don't include "contrib non-free". I believe these are the ones you need to add. See https://wiki.debian.org/SourcesList#Components and https://wiki.debian.org/DebianSoftware#Non-Free_Software_.28e.g._Adobe.27s_Flash.29

I'm not that current with debian's changing policy. It looks like the distro only included the non-free-firmware by default (so that hardware like wifi-cards work with default installer).
 
/etc/apt/sources.list
Code:
# Trixie Main
# Debian 13 Trixie https://www.debian.org/releases/trixie/release-notes/index.en.html
# deb https://deb.debian.org/debian/ trixie main contrib non-free non-free-firmware
# deb-src https://deb.debian.org/debian/ trixie main contrib non-free

# Trixie Security https://www.debian.org/releases/trixie/
# deb https://deb.debian.org/debian-security trixie-security main contrib non-free non-free-firmware
# deb-src https://deb.debian.org/debian-security bookworm-security main contrib non-free

# Trixie Updates https://wiki.debian.org/DebianTrixie#FAQ
# https://wiki.debian.org/StableUpdates All packages from stable-updates will be included in point releases.
# deb https://deb.debian.org/debian trixie-updates main contrib non-free non-free-firmware
# deb-src https://deb.debian.org/debian trixie-updates main contrib 

# Trixie Proposed Updates https://wiki.debian.org/StableProposedUpdates
# Stable-proposed-updates is an apt repository that contains the files that are being prepared for the next Debian/Stable point release.
# deb https://deb.debian.org/debian/ trixie-proposed-updates main contrib non-free non-free-firmware
# deb-src https://deb.debian.org/debian/ trixie-proposed-updates main contrib non-free

# Trixie Backports  https://backports.debian.org/
# https://backports.debian.org/news/trixie-backports_available/
# deb https://deb.debian.org/debian/ trixie-backports main contrib non-free non-free-firmware
# deb-src https://deb.debian.org/debian/ trixie-backports main contrib non-free

The new deb822 /etc/apt/sources.list.d/debian.sources
Code:
# Debian 13 Trixie Main Repository
Types: deb deb-src
URIs: https://deb.debian.org/debian/
Suites: trixie trixie-updates trixie-proposed-updates
Components: main  contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg

# Security Updates
Types: deb
URIs: https://deb.debian.org/debian-security/
Suites: trixie-security
Components: main  contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg

/etc/apt/sources.list.d/debian-backports.sources
Code:
Origin: Debian Trixie Backports
Types: deb deb-src
URIs: https://deb.debian.org/debian/
Suites: trixie-backports
Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
Enabled: yes
 
I'm not that current with debian's changing policy. It looks like the distro only included the non-free-firmware by default (so that hardware like wifi-cards work with default installer).

You are correct. My wording and answer could have been much better sorry everyone. Thanks for correction Trml.

Debian 11 & earlier actually had non-free ISOs as well (just unofficial).

Further and more importantly the non-free-firmware is included by default now (on official ISOs) with Debian 12 & later. What isn't included are the non-free user packages/apps.
 
Further and more importantly the non-free-firmware is included by default now (on official ISOs) with Debian 12 & later. What isn't included are the non-free user packages/apps.
It's a good compromise in my eyes. Unfortunately, the hardware requiring non-free firmware-blobs keeps coming, e.g. some laptops not even including ethernet sockets anymore or failing modern suspend modes etc.

But once you have the debian base install, you can go install everything from default install repos and still rest very assured it is open-source - and licensed in a way it stays like that!
 


Follow Linux.org

Staff online

Members online


Top