LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-17-2006, 05:27 AM   #1
Zingaro2002
Member
 
Registered: Feb 2002
Location: Italy
Distribution: Fedora Core 1, Red Hat 8, Red Hat 9, Knoppix 3.3 (debian sarge)
Posts: 97

Rep: Reputation: 15
Debian sarge sources.list e apt-get, first steps


Hi guys!

Maybe my question is too simple (excuse me).

I've just completed the installation of Debian Sarge 3.1r0a (with kde) from a dvd disc.

I want that my distro remains sarge because I will use it as a mini-server (web,mail,mysql,php,ftp,samba and something else) and so I moreover need stability and security.

At this moment my sources.list contains just a reference to the dvd disc.

How can I add official repositries (updated and fast)?

Also repositries with non-gpl packets are good (I know this is out of "Debian philosophy" but they can be useful).

Ehm... after modifying sources.list, is it enough to run
apt-get update

to update everything to the last sarge-stable version?


Thank you very very much for any kind of suggestion!

Last edited by Zingaro2002; 05-17-2006 at 05:31 AM.
 
Old 05-17-2006, 06:45 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Add this in your /etc/apt/sources.list:

##############
### STABLE ###
##############
#Stable Sarge
deb ftp://ftp.it.debian.org/debian/ stable main contrib non-free
#Stable Sarge Sources
deb-src ftp://ftp.it.debian.org/debian/ stable main contrib non-free
#Security Updates Stable
deb http://security.debian.org/ stable/updates main contrib non-free

And apt-get update after this to take into account this list
Then apt-get upgrade to upgrade
 
Old 05-17-2006, 08:16 AM   #3
Zingaro2002
Member
 
Registered: Feb 2002
Location: Italy
Distribution: Fedora Core 1, Red Hat 8, Red Hat 9, Knoppix 3.3 (debian sarge)
Posts: 97

Original Poster
Rep: Reputation: 15
just a doubt

Thank you very very much!

Just a doubt:

I thought that apt-get upgrade should be used to convert a stable-sarge to an unstable-testing... I want to stay with sarge-stable!

Last thing: what's the difference between

apt-get upgrade
and
apt-get -f dist-upgrade

Thanks again!
 
Old 05-17-2006, 08:25 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
No, its apt-get dist-upgrade that is prefered when changing between release. See this: http://wiki.arslinux.com/Debian

apt-get -f , I've never used because was never needed and I don't like a stupid algorithm choosing for me.
If you will stay in sarge, I doubt you will have conflicts. Anyway aptitude has a better algorithm for resolving problems.
 
Old 05-17-2006, 09:24 AM   #5
Zingaro2002
Member
 
Registered: Feb 2002
Location: Italy
Distribution: Fedora Core 1, Red Hat 8, Red Hat 9, Knoppix 3.3 (debian sarge)
Posts: 97

Original Poster
Rep: Reputation: 15
Thanks!
Thanks!
 
Old 05-17-2006, 09:59 AM   #6
Michael_aust
Member
 
Registered: Aug 2005
Location: Lancashire (United Kingdom)
Distribution: Debian Etch, on 686 machine.
Posts: 509

Rep: Reputation: 31
if you just keep your sources list as was posted above then you wont ever have packages other then from sarge. If you did an apt-get dist-upgrade this would bring tyour system completely uptodate with sarge so all packages that had updates for sarge available would be upgraded.
 
Old 05-17-2006, 12:20 PM   #7
Zingaro2002
Member
 
Registered: Feb 2002
Location: Italy
Distribution: Fedora Core 1, Red Hat 8, Red Hat 9, Knoppix 3.3 (debian sarge)
Posts: 97

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Michael_aust
if you just keep your sources list as was posted above then you wont ever have packages other then from sarge. If you did an apt-get dist-upgrade this would bring tyour system completely uptodate with sarge so all packages that had updates for sarge available would be upgraded.
Thank you very much for your explanation!!!
 
Old 05-17-2006, 02:12 PM   #8
Michael_aust
Member
 
Registered: Aug 2005
Location: Lancashire (United Kingdom)
Distribution: Debian Etch, on 686 machine.
Posts: 509

Rep: Reputation: 31
if you type in a terminal man apt-get it will tell you all of the cmmands for apt-get and what they do.
 
Old 05-18-2006, 02:55 AM   #9
Zingaro2002
Member
 
Registered: Feb 2002
Location: Italy
Distribution: Fedora Core 1, Red Hat 8, Red Hat 9, Knoppix 3.3 (debian sarge)
Posts: 97

Original Poster
Rep: Reputation: 15
Here is my sources.list

#deb file:///cdrom/ sarge main

#deb cdrom:[Debian GNU/Linux 3.1 r0a _Sarge_ - Official i386 Binary-2 (20050607)]/ unstable contrib main
#deb cdrom:[Debian GNU/Linux 3.1 r0a _Sarge_ - Official i386 Binary-1 (20050607)]/ unstable contrib main

##############
### STABLE ###
##############
#Stable Sarge
deb ftp://ftp.it.debian.org/debian/ stable main contrib non-free
#Stable Sarge Sources
deb-src ftp://ftp.it.debian.org/debian/ stable main contrib non-free

# FASTWEB
deb http://debian.fastweb.it/debian/ stable main contrib non-free
deb-src http://debian.fastweb.it/debian/ stable main contrib non-free

#Security Updates Stable
deb http://security.debian.org/ stable/updates main contrib non-free
 
Old 05-19-2006, 03:59 PM   #10
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 273Reputation: 273Reputation: 273
Just one change I would make:
Quote:
Originally Posted by Zingaro2002
#deb file:///cdrom/ sarge main

#deb cdrom:[Debian GNU/Linux 3.1 r0a _Sarge_ - Official i386 Binary-2 (20050607)]/ unstable contrib main
#deb cdrom:[Debian GNU/Linux 3.1 r0a _Sarge_ - Official i386 Binary-1 (20050607)]/ unstable contrib main

##############
### STABLE ###
##############
#Stable Sarge
deb ftp://ftp.it.debian.org/debian/ sarge main contrib non-free
#Stable Sarge Sources
deb-src ftp://ftp.it.debian.org/debian/ sarge main contrib non-free

# FASTWEB
deb http://debian.fastweb.it/debian/ sarge main contrib non-free
deb-src http://debian.fastweb.it/debian/ sarge main contrib non-free

#Security Updates Stable
deb http://security.debian.org/ sarge/updates main contrib non-free
I do this because at some point (currently estimated around Dec 2006) Debian will release a new stable version - Etch. So if you're tracking by the word "stable" your server would upgrade some packages to etch. I usually like to do dist-upgrades manually, so I'll track sarge until I'm confident etch has got a good review before dist-upgrading.
 
Old 05-22-2006, 08:28 AM   #11
Zingaro2002
Member
 
Registered: Feb 2002
Location: Italy
Distribution: Fedora Core 1, Red Hat 8, Red Hat 9, Knoppix 3.3 (debian sarge)
Posts: 97

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pljvaldez
Just one change I would make:

I do this because at some point (currently estimated around Dec 2006) Debian will release a new stable version - Etch. So if you're tracking by the word "stable" your server would upgrade some packages to etch. I usually like to do dist-upgrades manually, so I'll track sarge until I'm confident etch has got a good review before dist-upgrading.

Thank you very much!

I modified my sources.list according to your suggestions (I also prefer to do dist upgrade manually).
Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Recommendation for Debian Etch sources.list ( /etc/apt/sources.list ) forgox Debian 6 05-05-2007 01:57 PM
Problems with apt/sources.list and security.debian.org grmoen Debian 2 01-04-2006 06:56 AM
apt-get update errors since Debian released ( bad /etc/apt/sources.list ?) forgox Debian 10 06-13-2005 12:28 PM
Guide: apt-get sources,list for KDE KDevelop on Debian/Xandros jdruin Linux - Software 0 10-25-2004 08:09 PM
help with /etc/apt/sources.list please Lleb_KCir Linux - Software 0 10-05-2004 01:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration