LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   params for debian sources.list (https://www.linuxquestions.org/questions/linux-newbie-8/params-for-debian-sources-list-414472/)

g_srinivas 02-12-2006 05:46 AM

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?

g_srinivas 02-12-2006 06:06 AM

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:~#


TigerOC 02-12-2006 07:25 AM

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.

HappyTux 02-12-2006 11:04 AM

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.

craigevil 02-13-2006 11:09 AM

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.


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