Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

sources.list file

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
pipa85
Posts: 7
Joined: 2018-08-08 12:32

sources.list file

#1 Post by pipa85 »

Hello,

What is the correct syntax for adding the security repository in the "sources.list" file:

is it:
deb http://security.debian.org/debian-security/ stretch/updates main contrib non-free
or:
deb http://security.debian.org/ strech/updates main contrib non-free

the same for Jessie:
is it:
deb http://security.debian.org/debian-security/ jessie/updates main contrib non-free
or :
deb http://security.debian.org/ jessie/updates main contrib non-free

I mean should I add "debian-security /" in the URL or not

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1387
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 45 times
Been thanked: 64 times

Re: sources.list file

#2 Post by None1975 »

Hello. You can take advantage of this tool-Debian Sources List Generator.
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: sources.list file

#3 Post by Head_on_a_Stick »

^ I seem to remember sites like that causing problems in the past, it's better that the user understands what the file contains rather than rely on a black box to fill it for them (IMO).

The canonical reference is https://deb.debian.org/, FWIW, but the Debian wiki has a page about sources.
deadbang

User avatar
Ardouos
Posts: 1075
Joined: 2013-11-03 00:30
Location: Elicoor II
Has thanked: 1 time
Been thanked: 4 times

Re: sources.list file

#4 Post by Ardouos »

There is only one Debian | Do not break Debian | Stability and Debian | Backports

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: sources.list file

#5 Post by GarryRicketson »

by pipa85 »I mean should I add "debian-security /" in the URL or not
If you want the "debian-security" updates, then you need to include it, as shown in the wiki.
If you do not want the "debian-security" updates, then do not use it.

Like wise, if you do not want the "source files", then do not use the "src"
lines , IE:

Code: Select all

deb-src http://security.debian.org/debian-security/ stretch/updates main 
I think you should use the "debian-security" updates, sometimes they are important if you want to keep your system secure, if security is not important to you, then you don't have to use them, it is entirely up to you.
I would not use a "automatic" sources generator, it could add sources that you do not want to use, but again , that is entirely up to you.

Dai_trying
Posts: 1100
Joined: 2016-01-07 12:25
Has thanked: 5 times
Been thanked: 16 times

Re: sources.list file

#6 Post by Dai_trying »

GarryRicketson wrote:If you want the "debian-security" updates, then you need to include it, as shown in the wiki.
If you do not want the "debian-security" updates, then do not use it.
I think you have misunderstood what the OP has asked, it is not whether to enable security updates but which address line in the First post is correct
pipa85 wrote:is it:
deb http://security.debian.org/debian-security/ stretch/updates main contrib non-free
or:
deb http://security.debian.org/ strech/updates main contrib non-free
@pipa85, I have mine set to :-

Code: Select all

deb http://security.debian.org/debian-security/ stretch/updates main
so I guess this must be right (as it works :D ).

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: sources.list file

#7 Post by GarryRicketson »

Ok, maybe I misunderstand the OP, and the wiki does not show this one:

Code: Select all

deb http://security.debian.org/ jessie/updates main contrib non-free 
^(It might not work)^

So you are right the OP should use this one:

Code: Select all

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

pipa85
Posts: 7
Joined: 2018-08-08 12:32

Re: sources.list file

#8 Post by pipa85 »

Thank you for your answers.
And for jessie:
this:
deb http://security.debian.org/debian-security/ jessie/updates main contrib non-free
or this:
deb http://security.debian.org/ jessie/updates main contrib non-free

on the internet I often find the second possiblity so why this confusion

Dai_trying
Posts: 1100
Joined: 2016-01-07 12:25
Has thanked: 5 times
Been thanked: 16 times

Re: sources.list file

#9 Post by Dai_trying »

I am not certain of this but I would guess that the url remain the same and just the version (stretch/jessie) should change. Sorry I don't use Jessie any longer so cannot check this.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: sources.list file

#10 Post by Head_on_a_Stick »

My sources:

Code: Select all

deb https://cdn-aws.deb.debian.org/debian/ stretch main
#deb-src http://cdn-aws.deb.debian.org/debian/ stretch main

deb https://cdn-aws.deb.debian.org/debian/ stretch-updates main
#deb-src http://cdn-aws.deb.debian.org/debian/ stretch-updates main

deb https://cdn-aws.deb.debian.org/debian-security stretch/updates main
#deb-src https://cdn-aws.deb.debian.org/debian-security stretch/updates main
The apt-transport-https package is needed to resolve those addresses; cdn-aws is the cloud provider for the redirect service and hitting them directly saves a few bounces.
deadbang

emariz
Posts: 2901
Joined: 2008-10-17 07:59

Re: sources.list file

#11 Post by emariz »

pipa85 wrote:Thank you for your answers.
And for jessie:
this:
deb http://security.debian.org/debian-security/ jessie/updates main contrib non-free
or this:
deb http://security.debian.org/ jessie/updates main contrib non-free

on the internet I often find the second possiblity so why this confusion
It is rather funny that you never cared to visit the one site that you are pasting over and over.
Had you care to visit https://www.debian.org/security/, you would have read that the currently preferred source is indeed

Code: Select all

deb http://security.debian.org/debian-security stretch/updates main contrib non-free
And, pipa85, please use the Code Tags to enclose code, command output and raw text. They ease the read.

Post Reply