Results 1 to 5 of 5
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 ...
- 06-28-2009 #1
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:
and my /etc/apt/sourcses.list has entries for both stable, testing and unstable:Code:APT::Default-Release "stable";
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.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
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 testing, Debian stable, Ubuntu, Windows XP, Windows Vista
- 06-30-2009 #2Just Joined!
- Join Date
- Aug 2005
- Location
- Houston, Texas.
- Posts
- 57
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.
- 06-30-2009 #3forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 18,085
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 packagesoz
→ new members/users: read this first | new member faq
→ no private messages requesting computer support - post them on the forums!
→ please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.
- 06-30-2009 #4Just Joined!
- Join Date
- Aug 2005
- Location
- Houston, Texas.
- Posts
- 57
- 07-01-2009 #5
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:
aptitude update and aptitude upgrade did nothing.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
This shows what I have installed from other releases:
Apparently skysentials is from squeeze (testing).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
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 testing, Debian stable, Ubuntu, Windows XP, Windows Vista


Reply With Quote

