Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Debian Linux Help > Multiple releases in sources.list

Forgot Password?
 Debian Linux Help   Discussions related to Debian GNU/Linux.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 06-28-2009   #1 (permalink)
Linux User
 
Daan's Avatar
 
Join Date: Aug 2005
Location: The Netherlands
Posts: 291
Send a message via Skype™ to Daan
Question Multiple releases in sources.list

Hello,

I have am running Debian stable (lenny) on my laptop and have set apt up so that when a package is not available it will be downloaded from another suite. For instance skysentials, which Iis only in unstable (sid). To do so, I set a preferred suite in /etc/apt/apt.conf:
Code:
APT::Default-Release "stable";
and my /etc/apt/sourcses.list has entries for both stable, testing and unstable:
Code:
deb http://ftp.nl.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.nl.debian.org/debian/ lenny main contrib non-free
deb http://security.debian.org/ lenny/updates main contrib non-free
deb-src http://security.debian.org/ lenny/updates main contrib non-free
deb http://www.backports.org/debian lenny-backports main contrib non-free
deb http://www.debian-multimedia.org lenny main
deb http://download.skype.com/linux/repos/debian/ stable non-free
deb http://download.virtualbox.org/virtualbox/debian lenny non-free
deb http://rlehy.free.fr/packages/ekee ./ 

deb http://ftp.nl.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.nl.debian.org/debian/ squeeze main contrib non-free
deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free
deb http://www.debian-multimedia.org squeeze main

deb http://ftp.nl.debian.org/debian/ sid main contrib non-free
deb-src http://ftp.nl.debian.org/debian/ sid main contrib non-free
deb http://www.debian-multimedia.org sid main
Now when I install a package through aptitude (or synaptic or apt-get), it will first see if it's available in lenny. If it is not it will get it from another release.

But what if it is both in testing and unstable? Will it then get the version with the highest version number? That would be from unstable, but if it's also in testing, I would prefer that.

Am I right about apt's behaviour? How would I set things up to get the "most stable" package that is available?
__________________
OS's I use: Debian Lenny, Windows XP, Windows Vista
Daan is offline  


Reply With Quote
Old 06-30-2009   #2 (permalink)
Just Joined!
 
Join Date: Aug 2005
Location: Houston, Texas.
Posts: 26
Nice thing about Debian is the Apt-Get package manger. The problem you have, looking at your repo list, is mixing versions. Lets start from the beginning: Stable (Lenny), Testing (Squeeze) , and Unstable (Always Sid). You've mixed Stable with Testing. A sure fire certainty for problems.

It's one or the other. Not both. So if you want something not in the Stable repos, or the Testing repost, depending on what version you are using, get it via a tarball (ugh!!!). Or look for a .deb package. Otherwise, wait until it's in the repos.
loopback is offline   Reply With Quote
Old 06-30-2009   #3 (permalink)
Super Moderator
 
ozar's Avatar
 
Join Date: May 2004
Posts: 12,025
Don't know if it will help, but the Apt Manual gives some specific instructions for those wanting to run a mixed system:

APT HOWTO - Managing packages
__________________
oz

New Members: * README *
ozar is offline   Reply With Quote
Old 06-30-2009   #4 (permalink)
Just Joined!
 
Join Date: Aug 2005
Location: Houston, Texas.
Posts: 26
Quote:
Originally Posted by ozar View Post
Don't know if it will help, but the Apt Manual gives some specific instructions for those wanting to run a mixed system:

APT HOWTO - Managing packages

True enough. But why make things more difficult. My point of view is use one or the other - Stable or Testing. If you really want to be adventurous, jump on Sid!
loopback is offline   Reply With Quote
Old 07-01-2009   #5 (permalink)
Linux User
 
Daan's Avatar
 
Join Date: Aug 2005
Location: The Netherlands
Posts: 291
Send a message via Skype™ to Daan
I need some packages from testing. Why install packages by hand if I can do it more easily through aptitude?

I have created an /etc/apt/preferences:
Code:
Package: *
Pin: release a=stable
Pin-Priority: 990

Package: *
Pin: release a=testing
Pin-Priority: 900

Package: *
Pin: release a=unstable
Pin-Priority: 800
aptitude update and aptitude upgrade did nothing.

This shows what I have installed from other releases:
Code:
# apt-show-versions | grep squeeze
flashplugin-nonfree/squeeze uptodate 1:2.6
python-skype/squeeze uptodate 1.0.31.0-1
skysentials/squeeze uptodate 1.0.1-4
# apt-show-versions | grep sid
amarok-konqsidebar/lenny uptodate 1.4.10-2
libnfsidmap2/lenny uptodate 0.20-1
libsidplay1/lenny uptodate 1.36.59-5
tzdata/sid uptodate 2009j-1
Apparently skysentials is from squeeze (testing).

As long as a I keep an eye on things, I think I will be fine (but I will make backup disk images).
__________________
OS's I use: Debian Lenny, Windows XP, Windows Vista
Daan is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 04:38 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2