sources.list

Help with issues regarding installation of Debian
Message
Author
fch
Posts: 35
Joined: 2021-09-06 15:44
Has thanked: 2 times

sources.list

#1 Post by fch »

My sources list seems not right, could someone comment please? also my sources.list.d is empty, is it normal?

deb http://deb.debian.org/debian/ bullseye main contrib non-free
deb-src http://deb.debian.org/debian/ bullseye main contrib non-free

deb http://deb.debian.org/debian/ bullseye-updates main contrib non-free
deb-src http://deb.debian.org/debian/ bullseye-updates main contrib non-free

deb http://deb.debian.org/debian-security/ bullseye-security main contrib non-f>
deb-src http://deb.debian.org/debian-security/ bullseye-security main contrib n>

deb http://security.debian.org/ bullseye-security contrib non-free main

User avatar
sunrat
Global Moderator
Global Moderator
Posts: 3794
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 5 times
Been thanked: 16 times

Re: sources.list

#2 Post by sunrat »

sources.list.d is empty unless you add extra repos to it. This is the default sources except deb-src lines are commented out, not needed unless you compile stuff.

Code: Select all

deb http://deb.debian.org/debian/ bullseye main contrib non-free
# deb-src http://deb.debian.org/debian/ bullseye main

deb http://security.debian.org/debian-security bullseye-security main
# deb-src http://security.debian.org/debian-security bullseye-security main

deb http://deb.debian.org/debian bullseye-updates main contrib non-free
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

User avatar
craigevil
Posts: 5327
Joined: 2006-09-17 03:17
Location: Oz
Has thanked: 9 times
Been thanked: 16 times

Re: sources.list

#3 Post by craigevil »

# Bullseye https://www.debian.org/releases/bullsey ... ng.en.html
deb https://deb.debian.org/debian/ bullseye main contrib non-free
# deb-src https://deb.debian.org/debian/ bullseye main contrib non-free

# Bullseye Security https://www.debian.org/releases/bullsey ... ty-archive
deb https://deb.debian.org/debian-security bullseye-security main contrib non-free
# deb-src https://deb.debian.org/debian-security bullseye-security main contrib non-free

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

# Bullseye Backports https://backports.debian.org/
# Backports are _not_ enabled by default.
# Enable them by uncommenting the following line:
# deb https://deb.debian.org/debian/ bullseye-backports main contrib non-free
# deb-src https://deb.debian.org/debian/ bullseye-backports main contrib non-free

# Bullseye 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/ bullseye-proposed-updates main contrib non-free
# deb-src https://deb.debian.org/debian/ bullseye-proposed-updates main contrib non-free
Raspberry PI 400 Distro: Raspberry Pi OS Base: Debian sid Kernel: 5.10.63-v8+ aarch64 DE: MATE Ram 4GB
Debian - "If you can't apt install something, it isn't useful or doesn't exist"

User avatar
FreewheelinFrank
Posts: 441
Joined: 2010-06-07 16:59
Been thanked: 4 times

Re: sources.list

#4 Post by FreewheelinFrank »

sunrat wrote: 2021-09-14 15:36 deb http://security.debian.org/debian-security bullseye-security main
craigevil wrote: 2021-09-14 15:47 deb https://deb.debian.org/debian-security bullseye-security main contrib non-free
Ella Fitzgerald & Louis Armstrong wrote: You say either and I say either,
You say neither and I say neither
Either, either neither, neither
Let's call the whole thing off.

You like potato and I like potahto
You like tomato and I like tomahto
Potato, potahto, tomato, tomahto.
Let's call the whole thing off
I presume OP doesn't need to say potato and potahto?
fch wrote: 2021-09-14 15:07 deb http://deb.debian.org/debian-security/ bullseye-security main contrib non-f>
deb http://security.debian.org/ bullseye-security contrib non-free main
Even Debian.org pages are not consistent about which one to use:

https://www.debian.org/releases/stable/errata
https://wiki.debian.org/SourcesList

fch
Posts: 35
Joined: 2021-09-06 15:44
Has thanked: 2 times

Re: sources.list

#5 Post by fch »

sunrat wrote: 2021-09-14 15:36 sources.list.d is empty unless you add extra repos to it. This is the default sources except deb-src lines are commented out, not needed unless you compile stuff.

Code: Select all

deb http://deb.debian.org/debian/ bullseye main contrib non-free
# deb-src http://deb.debian.org/debian/ bullseye main

deb http://security.debian.org/debian-security bullseye-security main
# deb-src http://security.debian.org/debian-security bullseye-security main

deb http://deb.debian.org/debian bullseye-updates main contrib non-free
Thank you person! That's what I wanted - the default souces, I was confused reading the debian wiki.

User avatar
FreewheelinFrank
Posts: 441
Joined: 2010-06-07 16:59
Been thanked: 4 times

Re: sources.list

#6 Post by FreewheelinFrank »

fch wrote: 2021-09-14 18:35
sunrat wrote: 2021-09-14 15:36 sources.list.d is empty unless you add extra repos to it. This is the default sources except deb-src lines are commented out, not needed unless you compile stuff.

Code: Select all

deb http://deb.debian.org/debian/ bullseye main contrib non-free
# deb-src http://deb.debian.org/debian/ bullseye main

deb http://security.debian.org/debian-security bullseye-security main
# deb-src http://security.debian.org/debian-security bullseye-security main

deb http://deb.debian.org/debian bullseye-updates main contrib non-free
Thank you person! That's what I wanted - the default souces, I was confused reading the debian wiki.
What, the one with the example sources list? :?

https://wiki.debian.org/SourcesList

fch
Posts: 35
Joined: 2021-09-06 15:44
Has thanked: 2 times

Re: sources.list

#7 Post by fch »

FreewheelinFrank wrote: 2021-09-14 21:32
fch wrote: 2021-09-14 18:35
sunrat wrote: 2021-09-14 15:36 sources.list.d is empty unless you add extra repos to it. This is the default sources except deb-src lines are commented out, not needed unless you compile stuff.

Code: Select all

deb http://deb.debian.org/debian/ bullseye main contrib non-free
# deb-src http://deb.debian.org/debian/ bullseye main

deb http://security.debian.org/debian-security bullseye-security main
# deb-src http://security.debian.org/debian-security bullseye-security main

deb http://deb.debian.org/debian bullseye-updates main contrib non-free
Thank you person! That's what I wanted - the default souces, I was confused reading the debian wiki.
What, the one with the example sources list? :?

https://wiki.debian.org/SourcesList
I am confuse, the one from the example, desactivated the security updates (bullsaye-security) under updates in Software & Updates

User avatar
FreewheelinFrank
Posts: 441
Joined: 2010-06-07 16:59
Been thanked: 4 times

Re: sources.list

#8 Post by FreewheelinFrank »

You have two sources of security updates - I don't know if this is going to cause problems.

One is also truncated (unless this was a cut and paste error):

Code: Select all

deb http://deb.debian.org/debian-security/ bullseye-security main contrib non-f>
I would suggest going with this one, as it is the source recommended at https://www.debian.org/security/

Code: Select all

deb http://security.debian.org/debian-security bullseye-security main contrib non-free
I have no idea why Debian.org and very knowledgable forum members are recommending two different sources for security updates, but I suspect having both in sources.list might cause problems.

User avatar
sunrat
Global Moderator
Global Moderator
Posts: 3794
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 5 times
Been thanked: 16 times

Re: sources.list

#9 Post by sunrat »

fch wrote: 2021-09-15 05:59
FreewheelinFrank wrote: 2021-09-14 21:32
fch wrote: 2021-09-14 18:35
Thank you person! That's what I wanted - the default souces, I was confused reading the debian wiki.
What, the one with the example sources list? :?

https://wiki.debian.org/SourcesList
I am confuse, the one from the example, desactivated the security updates (bullsaye-security) under updates in Software & Updates
I don't understand what you mean. Please explain better.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

fch
Posts: 35
Joined: 2021-09-06 15:44
Has thanked: 2 times

Re: sources.list

#10 Post by fch »

Sunrat,

From your example my system is like it was on a fresh install(my n00b brain tells me it's better), but from the Debian wiki it disables the the security updates (bullseye-security) under updates in "Software & Updates".

User avatar
FreewheelinFrank
Posts: 441
Joined: 2010-06-07 16:59
Been thanked: 4 times

Re: sources.list

#11 Post by FreewheelinFrank »

What does

Code: Select all

# apt-get update
say?

If APT is successfully checking one security source it should say:

Code: Select all

root@Toshiba-laptop:~# apt-get update
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://deb.debian.org/debian bullseye-updates InRelease
Hit:3 http://security.debian.org/debian-security bullseye-security InRelease
Reading package lists... Done
If you enable two security sources it will check both:

Code: Select all

root@Toshiba-laptop:~# apt-get update
Hit:1 http://deb.debian.org/debian bullseye InRelease
Get:2 http://deb.debian.org/debian bullseye-updates InRelease [36.8 kB]
Get:3 http://deb.debian.org/debian-security bullseye-security InRelease [44.1 kB]
Get:4 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages [31.1 kB]
Get:5 http://deb.debian.org/debian-security bullseye-security/main Translation-en [16.8 kB]
Hit:6 http://security.debian.org/debian-security bullseye-security InRelease   
Fetched 129 kB in 31s (4,168 B/s)                              
Reading package lists... Done

User avatar
sunrat
Global Moderator
Global Moderator
Posts: 3794
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 5 times
Been thanked: 16 times

Re: sources.list

#12 Post by sunrat »

fch wrote: 2021-09-15 07:24 Sunrat,

From your example my system is like it was on a fresh install(my n00b brain tells me it's better), but from the Debian wiki it disables the the security updates (bullseye-security) under updates in "Software & Updates".
Sorry, I don't know what "Software & Updates" is. Maybe a Gnome thing? I don't use Gnome. In Synaptic one can look in "Settings > Repositories".
Do you have inxi installed? Very handy hardware info utility. Install it and show us

Code: Select all

inxi -r
Otherwise the default apt can show repos:-

Code: Select all

apt policy
The sources example in the wiki has security enabled:

Code: Select all

deb http://deb.debian.org/debian bullseye main contrib non-free
deb-src http://deb.debian.org/debian bullseye main contrib non-free

deb http://deb.debian.org/debian-security/ bullseye-security main contrib non-free
deb-src http://deb.debian.org/debian-security/ bullseye-security main contrib non-free

deb http://deb.debian.org/debian bullseye-updates main contrib non-free
deb-src http://deb.debian.org/debian bullseye-updates main contrib non-free
In the one I posted, the deb-src lines are commented out as I don't compile software from the repo, and non-free is removed from security as the security team don't generally do non-free. What Frank just posted above while I was writing will also show repo info.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

fch
Posts: 35
Joined: 2021-09-06 15:44
Has thanked: 2 times

Re: sources.list

#13 Post by fch »

FreewheelinFrank wrote: 2021-09-15 09:15 What does

Code: Select all

# apt-get update
say?

If APT is successfully checking one security source it should say:

Code: Select all

root@Toshiba-laptop:~# apt-get update
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://deb.debian.org/debian bullseye-updates InRelease
Hit:3 http://security.debian.org/debian-security bullseye-security InRelease
Reading package lists... Done
If you enable two security sources it will check both:

Code: Select all

root@Toshiba-laptop:~# apt-get update
Hit:1 http://deb.debian.org/debian bullseye InRelease
Get:2 http://deb.debian.org/debian bullseye-updates InRelease [36.8 kB]
Get:3 http://deb.debian.org/debian-security bullseye-security InRelease [44.1 kB]
Get:4 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages [31.1 kB]
Get:5 http://deb.debian.org/debian-security bullseye-security/main Translation-en [16.8 kB]
Hit:6 http://security.debian.org/debian-security bullseye-security InRelease   
Fetched 129 kB in 31s (4,168 B/s)                              
Reading package lists... Done
apt update says:

trovato=found

Trovato:1 http://security.debian.org bullseye-security InRelease
Trovato:2 http://deb.debian.org/debian bullseye InRelease
Trovato:3 http://deb.debian.org/debian-security bullseye-security InRelease
Trovato:4 http://deb.debian.org/debian bullseye-updates InRelease

fch
Posts: 35
Joined: 2021-09-06 15:44
Has thanked: 2 times

Re: sources.list

#14 Post by fch »

sunrat wrote: 2021-09-15 09:24
fch wrote: 2021-09-15 07:24 Sunrat,

From your example my system is like it was on a fresh install(my n00b brain tells me it's better), but from the Debian wiki it disables the the security updates (bullseye-security) under updates in "Software & Updates".
Sorry, I don't know what "Software & Updates" is. Maybe a Gnome thing? I don't use Gnome. In Synaptic one can look in "Settings > Repositories".
Do you have inxi installed? Very handy hardware info utility. Install it and show us

Code: Select all

inxi -r
Otherwise the default apt can show repos:-

Code: Select all

apt policy
The sources example in the wiki has security enabled:

Code: Select all

deb http://deb.debian.org/debian bullseye main contrib non-free
deb-src http://deb.debian.org/debian bullseye main contrib non-free

deb http://deb.debian.org/debian-security/ bullseye-security main contrib non-free
deb-src http://deb.debian.org/debian-security/ bullseye-security main contrib non-free

deb http://deb.debian.org/debian bullseye-updates main contrib non-free
deb-src http://deb.debian.org/debian bullseye-updates main contrib non-free
In the one I posted, the deb-src lines are commented out as I don't compile software from the repo, and non-free is removed from security as the security team don't generally do non-free. What Frank just posted above while I was writing will also show repo info.
Sorry, yes it's a gnome thing, is the same as going to Synaptic then "settings>repositories", with apt policy I get:

100 /var/lib/dpkg/status
release a=now
500 http://security.debian.org bullseye-security/main amd64 Packages
release v=11,o=Debian,a=stable-security,n=bullseye-security,l=Debian-Security,c=main,b=amd64
origin security.debian.org
500 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages
release v=11,o=Debian,a=stable-security,n=bullseye-security,l=Debian-Security,c=main,b=amd64
origin deb.debian.org
500 http://deb.debian.org/debian bullseye/non-free amd64 Packages
release v=11.0,o=Debian,a=stable,n=bullseye,l=Debian,c=non-free,b=amd64
origin deb.debian.org
500 http://deb.debian.org/debian bullseye/contrib amd64 Packages
release v=11.0,o=Debian,a=stable,n=bullseye,l=Debian,c=contrib,b=amd64
origin deb.debian.org
500 http://deb.debian.org/debian bullseye/main amd64 Packages
release v=11.0,o=Debian,a=stable,n=bullseye,l=Debian,c=main,b=amd64
origin deb.debian.org

inxi -r gives me:

Repos:
Active apt repos in: /etc/apt/sources.list
1: deb http://deb.debian.org/debian bullseye main contrib non-free
2: deb-src http://deb.debian.org/debian bullseye main contrib non-free
3: deb http://deb.debian.org/debian-security/ bullseye-security main contrib non-free
4: deb-src http://deb.debian.org/debian-security/ bullseye-security main contrib non-free
5: deb http://deb.debian.org/debian bullseye-updates main contrib non-free
6: deb-src http://deb.debian.org/debian bullseye-updates main contrib non-free
7: deb http://security.debian.org/ bullseye-security non-free contrib main

fch
Posts: 35
Joined: 2021-09-06 15:44
Has thanked: 2 times

Re: sources.list

#15 Post by fch »

Help me understand something about a repo like this bellow:

deb http://deb.debian.org/debian bullseye main contrib non-free

The fact that it is "non-free" does it mean it is exclusively "non-free", or the fact that its written "main" and "contrib" those other two are included too?

User avatar
FreewheelinFrank
Posts: 441
Joined: 2010-06-07 16:59
Been thanked: 4 times

Re: sources.list

#16 Post by FreewheelinFrank »

fch wrote: 2021-09-15 10:31
apt update says:

trovato=found

Trovato:1 http://security.debian.org bullseye-security InRelease
Trovato:2 http://deb.debian.org/debian bullseye InRelease
Trovato:3 http://deb.debian.org/debian-security bullseye-security InRelease
Trovato:4 http://deb.debian.org/debian bullseye-updates InRelease
1 and 3 are the same thing, but a different source, so choose one and disable the other, or you will be wasting time and resources, both yours and the Debian server's.
fch wrote: 2021-09-15 07:24 From your example my system is like it was on a fresh install(my n00b brain tells me it's better), but from the Debian wiki it disables the the security updates (bullseye-security) under updates in "Software & Updates".
The security repository source should have no effect on automatic updates. That is an unattended-upgrades thing.

Post contents of

Code: Select all

/etc/apt/apt.conf.d/20auto-upgrades

User avatar
FreewheelinFrank
Posts: 441
Joined: 2010-06-07 16:59
Been thanked: 4 times

Re: sources.list

#17 Post by FreewheelinFrank »

fch wrote: 2021-09-15 10:38 Help me understand something about a repo like this bellow:

deb http://deb.debian.org/debian bullseye main contrib non-free

The fact that it is "non-free" does it mean it is exclusively "non-free", or the fact that its written "main" and "contrib" those other two are included too?
Contrib is an addition to the main repository and non-free is an addition to main and contrib. Only the ones you specify are included.

https://wiki.debian.org/it/SourcesList#Componenti

User avatar
sunrat
Global Moderator
Global Moderator
Posts: 3794
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 5 times
Been thanked: 16 times

Re: sources.list

#18 Post by sunrat »

Quick search found this nice explanation - https://unix.stackexchange.com/question ... positories

I see your deb-src repos are still active. If you comment them out as in my suggestion above, your apt updates will go faster.

The correct security repo for Bullseye is http://security.debian.org - https://wiki.debian.org/NewInBullseye . Remove the other one. How did you manage to have both active? Seems you added everything posted above. Considering that "NewInBullseye" wiki link, that example sources in the wiki is incorrect (I'd guess it works and may even do so until Bookworm) but you definitely don't need both.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

fch
Posts: 35
Joined: 2021-09-06 15:44
Has thanked: 2 times

Re: sources.list

#19 Post by fch »

FreewheelinFrank wrote: 2021-09-15 12:39
fch wrote: 2021-09-15 10:31
apt update says:

trovato=found

Trovato:1 http://security.debian.org bullseye-security InRelease
Trovato:2 http://deb.debian.org/debian bullseye InRelease
Trovato:3 http://deb.debian.org/debian-security bullseye-security InRelease
Trovato:4 http://deb.debian.org/debian bullseye-updates InRelease
1 and 3 are the same thing, but a different source, so choose one and disable the other, or you will be wasting time and resources, both yours and the Debian server's.
fch wrote: 2021-09-15 07:24 From your example my system is like it was on a fresh install(my n00b brain tells me it's better), but from the Debian wiki it disables the the security updates (bullseye-security) under updates in "Software & Updates".
The security repository source should have no effect on automatic updates. That is an unattended-upgrades thing.

Post contents of

Code: Select all

/etc/apt/apt.conf.d/20auto-upgrades
GNU nano 5.4 /etc/apt/apt.conf.d/20auto-upgrades
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";

fch
Posts: 35
Joined: 2021-09-06 15:44
Has thanked: 2 times

Re: sources.list

#20 Post by fch »

sunrat wrote: 2021-09-15 12:54 Quick search found this nice explanation - https://unix.stackexchange.com/question ... positories

I see your deb-src repos are still active. If you comment them out as in my suggestion above, your apt updates will go faster.

The correct security repo for Bullseye is http://security.debian.org - https://wiki.debian.org/NewInBullseye . Remove the other one. How did you manage to have both active? Seems you added everything posted above. Considering that "NewInBullseye" wiki link, that example sources in the wiki is incorrect (I'd guess it works and may even do so until Bookworm) but you definitely don't need both.
To have both active I activated the security updates (bullseye-security) under updates in "Software & Updates", in the gnome GUI software, because after adding it manually with sudo nano, it gets unchecked in the gnome repository GUI.

Post Reply