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
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
Re: Contents of sources.list
yesJR657 wrote: Is this all I have to place in the file?
yesJR657 wrote: Will I get all the security and package upgrades?
- 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
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:
^ As you can see, backports also work with deb.debian.org; cdn-aws saves a redirect.
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:~ $
deadbang
Re: Contents of sources.list
Thank you.4D696B65 wrote:yesJR657 wrote: Is this all I have to place in the file?yesJR657 wrote: Will I get all the security and package upgrades?
Re: Contents of sources.list
Thank you. I will make the changes asap.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:^ As you can see, backports also work with deb.debian.org; cdn-aws saves a redirect.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:~ $
-
- Emeritus
- Posts: 2435
- Joined: 2010-12-07 19:55
- Has thanked: 14 times
- Been thanked: 54 times
Re: Contents of sources.list
Thanks for the link. I only want to use main.arochester wrote:Are we to assume that you do not wish contrib and non-free?
https://wiki.debian.org/SourcesList
Re: Contents of sources.list
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.arochester wrote:Are we to assume that you do not wish contrib and non-free?
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.