sources.list file

If none of the more specific forums is the right place to ask

sources.list file

Postby pipa85 » 2018-08-08 12:41

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
pipa85
 
Posts: 2
Joined: 2018-08-08 12:32

Re: sources.list file

Postby None1975 » 2018-08-08 13:08

Hello. You can take advantage of this tool-Debian Sources List Generator.
OS: Debian 9.4 / WM: Xmonad
Debian Wiki | DontBreakDebian, My config files in github
Linux User #607425
User avatar
None1975
 
Posts: 559
Joined: 2015-11-29 18:23
Location: Lithuania, Vilnius

Re: sources.list file

Postby Head_on_a_Stick » 2018-08-08 13:36

^ 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.
E Pluribus Unix
User avatar
Head_on_a_Stick
 
Posts: 7777
Joined: 2014-06-01 17:46
Location: /dev/chair


Re: sources.list file

Postby GarryRicketson » 2018-08-08 18:21

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.
User avatar
GarryRicketson
 
Posts: 4956
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: sources.list file

Postby Dai_trying » 2018-08-08 19:43

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 ).
Dai_trying
 
Posts: 505
Joined: 2016-01-07 12:25

Re: sources.list file

Postby GarryRicketson » 2018-08-08 20:01

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
User avatar
GarryRicketson
 
Posts: 4956
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: sources.list file

Postby pipa85 » 2018-08-09 08:12

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
pipa85
 
Posts: 2
Joined: 2018-08-08 12:32

Re: sources.list file

Postby Dai_trying » 2018-08-09 09:08

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.
Dai_trying
 
Posts: 505
Joined: 2016-01-07 12:25

Re: sources.list file

Postby Head_on_a_Stick » 2018-08-09 18:29

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.
E Pluribus Unix
User avatar
Head_on_a_Stick
 
Posts: 7777
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: sources.list file

Postby emariz » 2018-08-12 01:32

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.
emariz
 
Posts: 2904
Joined: 2008-10-17 07:59


Return to General Questions

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable