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

 

 

 

Contents of sources.list

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
JR657
Posts: 29
Joined: 2018-07-15 14:48
Has thanked: 1 time

Contents of sources.list

#1 Post by JR657 »

Hello,

I recently installed Debian Stretch and now I'm trying to figure out what to put in the sources.list file. I have done some research and this is what I have so far:

deb http://security.debian.org/debian-security stretch/updates main
deb-src http://security.debian.org/debian-security stretch/updates main

deb http://deb.debian.org/debian/ stretch-updates main
deb-src http://deb.debian.org/debian/ stretch-updates main

deb http://deb.debian.org/debian/ stretch main
deb-src http://deb.debian.org/debian/ stretch main

Is this all I have to place in the file? Will I get all the security and package upgrades?

Thank you

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 86 times

Re: Contents of sources.list

#2 Post by 4D696B65 »

JR657 wrote: Is this all I have to place in the file?
yes
JR657 wrote: Will I get all the security and package upgrades?
yes

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

Re: Contents of sources.list

#3 Post by Head_on_a_Stick »

You don't need the deb-src lines (unless you want to compile stuff from source), https can be used instead of plain http if the apt-transport-https package is installed and https://deb.debian.org/ can also be used with the Security repositories, here is my list:

Code: Select all

empty@hegel:~ $ cat /etc/apt/sources.list                                                             
deb https://cdn-aws.deb.debian.org/debian/ stretch main
#deb-src https://cdn-aws.deb.debian.org/debian/ stretch main

deb https://cdn-aws.deb.debian.org/debian/ stretch-updates main
#deb-src https://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

deb https://cdn-aws.deb.debian.org/debian/ stretch-backports main
empty@hegel:~ $
^ As you can see, backports also work with deb.debian.org; cdn-aws saves a redirect.
deadbang

JR657
Posts: 29
Joined: 2018-07-15 14:48
Has thanked: 1 time

Re: Contents of sources.list

#4 Post by JR657 »

4D696B65 wrote:
JR657 wrote: Is this all I have to place in the file?
yes
JR657 wrote: Will I get all the security and package upgrades?
yes
Thank you.

JR657
Posts: 29
Joined: 2018-07-15 14:48
Has thanked: 1 time

Re: Contents of sources.list

#5 Post by JR657 »

Head_on_a_Stick wrote:You don't need the deb-src lines (unless you want to compile stuff from source), https can be used instead of plain http if the apt-transport-https package is installed and https://deb.debian.org/ can also be used with the Security repositories, here is my list:

Code: Select all

empty@hegel:~ $ cat /etc/apt/sources.list                                                             
deb https://cdn-aws.deb.debian.org/debian/ stretch main
#deb-src https://cdn-aws.deb.debian.org/debian/ stretch main

deb https://cdn-aws.deb.debian.org/debian/ stretch-updates main
#deb-src https://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

deb https://cdn-aws.deb.debian.org/debian/ stretch-backports main
empty@hegel:~ $
^ As you can see, backports also work with deb.debian.org; cdn-aws saves a redirect.
Thank you. I will make the changes asap.

arochester
Emeritus
Emeritus
Posts: 2435
Joined: 2010-12-07 19:55
Has thanked: 14 times
Been thanked: 54 times

Re: Contents of sources.list

#6 Post by arochester »

Are we to assume that you do not wish contrib and non-free?

https://wiki.debian.org/SourcesList

JR657
Posts: 29
Joined: 2018-07-15 14:48
Has thanked: 1 time

Re: Contents of sources.list

#7 Post by JR657 »

arochester wrote:Are we to assume that you do not wish contrib and non-free?

https://wiki.debian.org/SourcesList
Thanks for the link. I only want to use main.

Bulkley
Posts: 6386
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: Contents of sources.list

#8 Post by Bulkley »

arochester wrote:Are we to assume that you do not wish contrib and non-free?
I use contrib and non-free for specific packages; otherwise I hash # them out. I did some testing and found that there is just no need to keep them open. Also, I have occasionally added third party sources for specific software. I block those sources immediately after obtaining what I want. Open sources can bring little presents that I really don't want.

Some third party software will run in user space. That's great. I can grab it, try it, use it all the while not allowing it access to my Debian system.

Post Reply