LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-12-2006, 06:46 AM   #1
g_srinivas
Member
 
Registered: Jul 2005
Location: USA
Distribution: SuSE 9
Posts: 49

Rep: Reputation: 15
Question params for debian sources.list


Hello,
Let me tell you at first that i am newbie to linux and Debian environment. I currently have Debian v3.1 Sarge edition running on my system which i installed yesterday only. I recently modified my /ect/apt/sources.list file to get faster uploads and i dont get any errors but i am not sure if the settings are good enough for the system to get updated regularly with stable updates?? My current sources.list looks the following way:

Code:
#deb file:///cdrom/ sarge main

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

#deb http://security.debian.org/ stable/updates main contrib

#### New Ones ####
deb ftp://ftp.de.debian.org/debian-non-US/ stable/non-US main
deb ftp://ftp.de.debian.org/debian-non-US/ stable/non-US contrib
deb ftp://ftp.de.debian.org/debian-non-US/ stable/non-US non-free
deb http://packages.dotdeb.org/ stable all

deb-src ftp://ftp.de.debian.org/debian-non-US/ stable/non-US main
deb-src ftp://ftp.de.debian.org/debian-non-US/ stable/non-US contrib
deb-src ftp://ftp.de.debian.org/debian-non-US/ stable/non-US non-free
deb-src http://packages.dotdeb.org/ stable all
Since i am living in Hamburg, Germany i went to the Debian full mirrors list and browsed for Germany and using netselect i found that for http://ftp.de.debian.org i am getting max. return value so i set this url in my sources.list. I am not sure if i need all the three main, contrib or non-free in my sources.list. I actually didn't understand what are the differences between each? And regarding the http://packages.dotdeb.org i added it because later i will be installing MySQL5 and PHP5 which are available from this link (came to know about this through some website).

For the above sources when i run apt-get update and apt-get -u upgrade i get following output:

Code:
latitude:~# apt-get update
Hit http://packages.dotdeb.org stable/all Packages
Hit http://packages.dotdeb.org stable/all Release
Hit http://packages.dotdeb.org stable/all Sources
Hit http://packages.dotdeb.org stable/all Release
Hit ftp://ftp.de.debian.org stable/non-US/main Packages
Hit ftp://ftp.de.debian.org stable/non-US/main Release
Hit ftp://ftp.de.debian.org stable/non-US/contrib Packages
Hit ftp://ftp.de.debian.org stable/non-US/contrib Release
Hit ftp://ftp.de.debian.org stable/non-US/non-free Packages
Hit ftp://ftp.de.debian.org stable/non-US/non-free Release
Hit ftp://ftp.de.debian.org stable/non-US/main Sources
Hit ftp://ftp.de.debian.org stable/non-US/main Release
Hit ftp://ftp.de.debian.org stable/non-US/contrib Sources
Hit ftp://ftp.de.debian.org stable/non-US/contrib Release
Hit ftp://ftp.de.debian.org stable/non-US/non-free Sources
Hit ftp://ftp.de.debian.org stable/non-US/non-free Release
Reading Package Lists... Done
latitude:~# apt-get -u upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
my last question, is this output normal? i mean with 0 upgraded, 0 newly installed and 0 not upgraded?
 
Old 02-12-2006, 07:06 AM   #2
g_srinivas
Member
 
Registered: Jul 2005
Location: USA
Distribution: SuSE 9
Posts: 49

Original Poster
Rep: Reputation: 15
Sorry but i got another problem. Now when i am trying to install MySQL using apt-get i get following errors:

Code:
latitude:~# apt-get install mysql-server-5.0 mysql-client-5.0 libmysqlclient15-dev
Reading Package Lists... Done
Building Dependency Tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  libmysqlclient15-dev: Depends: zlib1g-dev but it is not installable
  mysql-client-5.0: Depends: libdbi-perl but it is not installable
                    Depends: libdbd-mysql-perl (>= 1.2202) but it is not going to be installed
  mysql-server-5.0: Depends: libdbi-perl but it is not installable
E: Broken packages
I understood that the dependencies are missing, but shouldn't they get automatically downloaded and installed? When i try to run apt-get install for the dependencies i get following error message:
Code:
latitude:~# apt-get install libdbi-perl libdbd-mysql-perl libdbi-perl
Reading Package Lists... Done
Building Dependency Tree... Done
Package libdbi-perl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package libdbi-perl has no installation candidate
For your reference, my sources.list source is following:
Code:
latitude:~# cat /etc/apt/sources.list
#deb file:///cdrom/ sarge main

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

#deb http://security.debian.org/ stable/updates main contrib

#### New Ones ####
deb ftp://ftp.de.debian.org/debian-non-US/ stable/non-US main
deb ftp://ftp.de.debian.org/debian-non-US/ stable/non-US contrib
deb ftp://ftp.de.debian.org/debian-non-US/ stable/non-US non-free
### dotdeb german mirror ###
deb http://dotdeb.pimpmylinux.org/ stable all

deb-src ftp://ftp.de.debian.org/debian-non-US/ stable/non-US main
deb-src ftp://ftp.de.debian.org/debian-non-US/ stable/non-US contrib
deb-src ftp://ftp.de.debian.org/debian-non-US/ stable/non-US non-free
### dotdeb german mirror ###
deb-src http://dotdeb.pimpmylinux.org/ stable all
latitude:~#
 
Old 02-12-2006, 08:25 AM   #3
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Quote:
Package libdbi-perl is not available
You are using an "un-official" repository and the required package is not available on their servers. If you feel so inclined notify the maintainers of the site.
You could also find where the relevant packages are located on the "official" mirrors eg in testing or unstable and then change your sources list so that it reflects that branch i.e. replace stable with testing or unstable then do an apt-get update and then an apt-get install of the packages and then reset the sources list back to stable and do another update to restore your settings.

A comment on your sources.list;
You have remarked the line;

deb http://security.debian.org/ stable/updates main contrib

Un-remark the line because this gets your security updates which is fundamental to the base security of your system. i.e. when a vulnerability is found in software the updated packages are released via this route.
 
Old 02-12-2006, 12:04 PM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 69
Try this as well.

Code:
deb ftp://ftp.de.debian.org/debian/ stable main contrib non-free
It does not appear you have a line for just the normal archives in your sources.list. BTW that is the fastest mirror I have found with the exception of the ftp2.de... one it seems just as fast too.
 
Old 02-13-2006, 12:09 PM   #5
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 461Reputation: 461Reputation: 461Reputation: 461Reputation: 461
For Sarge all you really need is:
##############
### STABLE ###
##############
#Stable Sarge
deb http://http.us.debian.org/debian/ stable main contrib non-free
#Stable Sarge Sources
deb-src http://http.us.debian.org/debian/ stable main contrib non-free
#Security Updates Stable
deb http://security.debian.org/ stable/updates main contrib non-free

However if there are apps you can't find you need to add other repos. Get rid of the non-us it was obsolete when Sarge became stable.

For a very complete sources.list take a look at my signature. Just change the country code to reflect the closest mirror to you.
 
  


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 02:57 PM
Debian Sources List? wh33t Debian 6 06-01-2005 11:00 PM
Debian sid sources.list for kde 3.1(and others) rmanocha Debian 2 01-30-2004 03:03 PM
Debian Sid sources.list (for kde 3.1 etc.) rmanocha Linux - Software 4 01-30-2004 10:10 AM
sources.list, debian chongman99 Debian 8 08-10-2003 08:37 AM


All times are GMT -5. The time now is 09:12 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration