If APT::Default-Release is set and I run "apt-get source" on a source package that has no binary package of the same name (e.g., addresses-for-gnustep), it downloads the latest version, even if it's newer than the one corresponding to APT::Default-Release. It does this even if I specify --source-only.
I found this bug after wondering why this command retrieves the source package from experimental: $ apt-get source libdrm/unstable but a slightly modified version works as intended, i.e. fetches the version from unstable: $ apt-get source libdrm2/unstable The libdrm2 package is built from libdrm source, and there is no libdrm binary package. A nice explanation is found in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=441178#50, where it is also explained that another command, $ apt-get source libdrm=2.4.18-5 will fetch the desired version. Would it be correct to merge #438999 and #441178? Sven
Control: found -1 0.9.7.7 [...] Same problem with eglibc vs libc6. Moreover, "apt-get source eglibc/zzz" downloads the experimental version while "apt-get source -t zzz eglibc" gives an error.
Similar strange behaviour with "linux" package, on a stable distribution with unstable pinned to -10. apt-get source linux --> gets linux-3.9 from unstable (understandable, although doesn’t honor pinning) apt-get source linux/wheezy --> gets linux-3.9 from unstable (not what a user would expect) apt-get source linux-image-3.2.0-4-amd64 --> gets linux-3.9 from unstable (also not what a user would expect) apt-get source linux-image-3.2.0-4-amd64/wheezy --> gets linux-3.2 from wheezy (expected) My /etc/apt/preferences : Package: * Pin: release a=unstable Pin-Priority: -10 my /etc/apt/sources.list deb http://ftp.fr.debian.org/debian/ wheezy main non-free contrib deb-src http://ftp.fr.debian.org/debian/ wheezy main non-free contrib deb http://ftp.fr.debian.org/debian/ unstable main contrib non-free deb-src http://ftp.fr.debian.org/debian/ unstable main contrib non-free deb http://security.debian.org/ wheezy/updates main contrib non-free deb-src http://security.debian.org/ wheezy/updates main contrib non-free