Re: smooth upgrades

On Thu, 2006-12-28 at 07:50 +0200, Andrei Popescu wrote:
On Fri, Dec 22, 2006 at 04:05:31PM -0500, Greg Folkert wrote:
On Thu, 2006-12-21 at 22:48 +0200, Andrei Popescu wrote:
On Thu, Dec 21, 2006 at 03:04:46PM -0500, Greg Folkert wrote:
You should take a look at my sources.list

[qoute from above link]
# Do not forget to put in /etc/apt/apt.conf
# APT::Default-Release "<version>";
# APT::Cache-Limit 18000000;
# Else you'll never be able to parse all of these
# version can be: woody, sarge, etch, sid,
# oldstable, stable, testing,
# unstable or experimental

The APT-HOWTO doesn't mention code-names for the 'Default-Release'
option and my experiments suggest they don't work at all.

Hmm, unless you have the the sources labeled as them...

IOW like this:

## Old Stable - Debian (currently Woody)
#deb woody main contrib non-free
#deb-src woody main contrib non-free

## Stable - Debian (currently Sarge)
#deb sarge main contrib non-free
#deb-src sarge main contrib non-free

## Testing - Debian (currently Etch)
#deb etch main contrib non-free
#deb-src etch main contrib non-free

## Unstable - Debian (always SID, or Still In Developement)
#deb sid main contrib non-free
#deb-src sid main contrib non-free

Then they do work. And I just tested it here on the very machine I am
typing from... and it does work with the release labels. Perhaps I
should make a second sources.list this way. To remove any confusion.

How did you test? I used 'apt-cache policy' after each change. When I
used codenames it was like the entry never existed.

greg@princess:~$ apt-cache policy
Package files:
100 /var/lib/dpkg/status
release a=now
500 experimental/main Packages
release o=Unofficial Multimedia Packages,a=experimental,l=Unofficial Multimedia Packages,c=main
500 sid/main Packages
release o=Unofficial Multimedia Packages,a=unstable,l=Unofficial Multimedia Packages,c=main
500 unstable/ Packages
release o=,a=unstable,l=Ross Burton,c=
500 unstable/ Packages
release o=Joey Hess,a=unstable,l=joey,c=
1 ../project/experimental/non-free Packages
release o=Debian,a=experimental,l=Debian,c=non-free
1 ../project/experimental/contrib Packages
release o=Debian,a=experimental,l=Debian,c=contrib
1 ../project/experimental/main Packages
release o=Debian,a=experimental,l=Debian,c=main
500 sid/non-free Packages
release o=Debian,a=unstable,l=Debian,c=non-free
500 sid/contrib Packages
release o=Debian,a=unstable,l=Debian,c=contrib
500 sid/main Packages
release o=Debian,a=unstable,l=Debian,c=main
Pinned packages:

greg@princess:~$ cat /etc/apt/apt.conf
APT::Default-Release "sid";

greg@princess:~$ cat /etc/apt/sources.list
# Uncomment only those you want or need.

## Unstable - Debian (always SID, or Still In Developement)
deb sid main contrib non-free
deb-src sid main contrib non-free

## Experimental - Debian (always Experimental)
deb ../project/experimental main contrib non-free
deb-src ../project/experimental main contrib non-free

## Joey Hess' ../bleedingedge before it's submitted to the archive
deb unstable/
deb-src unstable/

## Ross Burtonini's stuff
deb unstable/
deb-src unstable/

## Christian Marillat's stuff ( for more info)
## uncomment one "deb" version and the deb-src (if you want the sources)
# deb sarge main
# deb etch main
deb sid main
deb experimental main
deb-src sid main

Hope that is enough of an explanation for you.
greg, greg@xxxxxxxxxxxxxxx

The technology that is
Stronger, better, faster: Linux

Attachment: signature.asc
Description: This is a digitally signed message part