Hi all, I'm looking at bug reports to try and clean some up and I noticed this one. I think we can close it, see my reasoning below your message and if you don't agree feel free to reopen the bug.
On Tue, May 10, 2011 at 08:14:24AM +0000, Simon Cozens wrote: > After upgrading from lenny to squeeze, trying to build packages from unstable, > apt-get source sometimes works: > > simon@dealer ~ % apt-get source apt > ... > Get:1 http://ftp.de.debian.org/debian/ unstable/main apt 0.8.14.1 (dsc) > [1,363 B] > ... > > (That is, correctly, fetching the unstable version.) And sometimes fails > spectacularly: > > simon@dealer ~ % apt-get source duplicity > ... > E: Ignore unavailable version '0.6.08b-1' of package 'duplicity' > E: Unable to find a source package for duplicity > > Wait, 0.6.08b-1 is the *stable* version. I don't want the stable version, > that's the whole point. Oh, maybe I need to say "-t unstable": > > simon@dealer ~ % apt-get -t unstable source duplicity > Reading package lists... Done > Building dependency tree > Reading state information... Done > E: Ignore unavailable target release 'unstable' of package 'duplicity' > E: Unable to find a source package for > > But clearly there is an entry for duplicity in the sources list: > > simon@dealer ~ % grep duplicity_ /var/lib/apt/lists/*Sources > a35f37d3a519b51be903c3f71588f487 1032 duplicity_0.6.12-1.dsc > 9b84c984054550bbb2ba29b553567b7b 296045 duplicity_0.6.12.orig.tar.gz > 17ecd266d7b7307512ab969c8fbd2669 13272 duplicity_0.6.12-1.diff.gz > ... > > In fact, there are *two different versions*: > > ... > b73a68286bc79140aab950ed13747a49 1033 duplicity_0.6.13-1.dsc > b3d627f35fc527b00121925840d5cca7 296955 duplicity_0.6.13.orig.tar.gz > ee420e83778e7a8dda731ed848cf84ab 13635 duplicity_0.6.13-1.diff.gz > > Obviously that's not an ideal scenario but apt-get source should *not* > throw its hands up and say "obviously you wanted the stable version which > I can't find". We have multiple source files for dovecot: $ grep dovecot_ /var/lib/apt/lists/*Sources | grep dsc /var/lib/apt/lists/deb.debian.org_debian_dists_stable_main_source_Sources: c305facad2b3785986e470397df410f3 4166 dovecot_2.3.19.1+dfsg1-2.1.dsc /var/lib/apt/lists/deb.debian.org_debian_dists_stable_main_source_Sources: 6e55d7ce048a613f00562e32a51e19d6503c9da9ae5d34d5692cca636c518d2b 4166 dovecot_2.3.19.1+dfsg1-2.1.dsc /var/lib/apt/lists/deb.debian.org_debian_dists_testing_main_source_Sources: 3d1fa5b58612668cb578df2e04f36002 4076 dovecot_2.3.21+dfsg1-2.dsc /var/lib/apt/lists/deb.debian.org_debian_dists_testing_main_source_Sources: 33a22aa897249f9600e7fdf95a4e96c11611ba3385cb8a5f8c87561d33c67f06 4076 dovecot_2.3.21+dfsg1-2.dsc /var/lib/apt/lists/deb.debian.org_debian_dists_unstable_main_source_Sources: 3d1fa5b58612668cb578df2e04f36002 4076 dovecot_2.3.21+dfsg1-2.dsc /var/lib/apt/lists/deb.debian.org_debian_dists_unstable_main_source_Sources: 33a22aa897249f9600e7fdf95a4e96c11611ba3385cb8a5f8c87561d33c67f06 4076 dovecot_2.3.21+dfsg1-2.dsc /var/lib/apt/lists/deb.debian.org_debian_dists_unstable_main_source_Sources: ca294cabc50b51d197c2b33777073078 4090 dovecot_2.3.21+dfsg1-3.dsc /var/lib/apt/lists/deb.debian.org_debian_dists_unstable_main_source_Sources: 13dd3e6c39b752f0925ec880ff4c1d807b6346a22bea1c4677dd6fd978f6ae74 4090 dovecot_2.3.21+dfsg1-3.dsc $ grep dovecot_ /var/lib/apt/lists/*Sources | grep unstable | grep dsc /var/lib/apt/lists/deb.debian.org_debian_dists_unstable_main_source_Sources: 3d1fa5b58612668cb578df2e04f36002 4076 dovecot_2.3.21+dfsg1-2.dsc /var/lib/apt/lists/deb.debian.org_debian_dists_unstable_main_source_Sources: 33a22aa897249f9600e7fdf95a4e96c11611ba3385cb8a5f8c87561d33c67f06 4076 dovecot_2.3.21+dfsg1-2.dsc /var/lib/apt/lists/deb.debian.org_debian_dists_unstable_main_source_Sources: ca294cabc50b51d197c2b33777073078 4090 dovecot_2.3.21+dfsg1-3.dsc /var/lib/apt/lists/deb.debian.org_debian_dists_unstable_main_source_Sources: 13dd3e6c39b752f0925ec880ff4c1d807b6346a22bea1c4677dd6fd978f6ae74 4090 dovecot_2.3.21+dfsg1-3.dsc We try to get the source package: $ apt-get source dovecot Reading package lists... Done NOTICE: 'dovecot' packaging is maintained in the 'Git' version control system at: https://salsa.debian.org/debian/dovecot.git Please use: git clone https://salsa.debian.org/debian/dovecot.git to retrieve the latest (possibly unreleased) updates to the package. Need to get 9598 kB of source archives. Get:1 https://deb.debian.org/debian unstable/main dovecot 1:2.3.21+dfsg1-3 (dsc) [4090 B] $ apt-get source dovecot/unstable Reading package lists... Done Selected version '1:2.3.21+dfsg1-3' (unstable) for dovecot NOTICE: 'dovecot' packaging is maintained in the 'Git' version control system at: https://salsa.debian.org/debian/dovecot.git Please use: git clone https://salsa.debian.org/debian/dovecot.git to retrieve the latest (possibly unreleased) updates to the package. Skipping already downloaded file 'dovecot_2.3.21+dfsg1-3.dsc' $ apt-get source -t unstable dovecot Reading package lists... Done Selected version '1:2.3.21+dfsg1-3' (unstable) for dovecot NOTICE: 'dovecot' packaging is maintained in the 'Git' version control system at: https://salsa.debian.org/debian/dovecot.git Please use: git clone https://salsa.debian.org/debian/dovecot.git to retrieve the latest (possibly unreleased) updates to the package. Skipping already downloaded file 'dovecot_2.3.21+dfsg1-3.dsc' $ apt-get source -t testing dovecot Reading package lists... Done Selected version '1:2.3.21+dfsg1-2' (testing) for dovecot NOTICE: 'dovecot' packaging is maintained in the 'Git' version control system at: https://salsa.debian.org/debian/dovecot.git Please use: git clone https://salsa.debian.org/debian/dovecot.git to retrieve the latest (possibly unreleased) updates to the package. Need to get 9597 kB of source archives. Get:1 https://deb.debian.org/debian testing/main dovecot 1:2.3.21+dfsg1-2 (dsc) [4076 B] This all seems to be working as expected. I hope you agree with me :) This is all tested on the current unstable code, but given that I thought this looked a lot like #607999 I'm (perhaps wrongfully) assuming this is also fixed on bookworm. Cheers, Wesley