[Lucid] apt-get source always selects highest available version instead of the specified one
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Debian) |
Fix Released
|
Unknown
|
|||
apt (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
Binary package hint: apt
It happens with all packages I tried, I'll use amarok as an example
$ apt-cache policy amarok
amarok:
Installed: 2:2.2.1.90-0ubuntu1
Candidate: 2:2.2.1.90-0ubuntu1
Version table:
*** 2:2.2.1.90-0ubuntu1 0
600 http://
100 /var/lib/
2:
50 http://
2.2.2~beta1-1 0
-1 http://
2.2.1-2 0
-1 http://
-1 http://
If I want the karmic source (I have the deb-src lines in my sources.list) I get
$ apt-get source amarok/karmic
Reading package lists... Done
Building dependency tree
Reading state information... Done
NOTICE: 'amarok' packaging is maintained in the 'Bzr' version control system at:
https:/
Please use:
bzr get https:/
to retrieve the latest (possibly unreleased) updates to the package.
Need to get 10.0MB of source archives.
Get:1 http://
Get:2 http://
Get:3 http://
Fetched 10.0MB in 7s (1,327kB/s)
gpgv: Signature made Wed 16 Dec 2009 01:35:33 PM CET using DSA key ID DD4D5088
gpgv: Can't check signature: public key not found
dpkg-source: warning: failed to verify signature on ./amarok_
dpkg-source: info: extracting amarok in amarok-2.2.1.90
dpkg-source: info: unpacking amarok_
dpkg-source: info: applying amarok_
W: Ignore unavailable target release 'karmic' of package 'amarok'
If I specify the version instead I get
$ apt-get source amarok=
[...]
W: Ignore unavailable version '2:2.2.0-0ubuntu2' of package 'amarok'
downgrading apt to the karmic version resolves this issue.
ProblemType: Bug
Architecture: i386
Date: Sun Jan 3 17:53:52 2010
DistroRelease: Ubuntu 10.04
Package: apt 0.7.25ubuntu2
ProcEnviron:
LANGUAGE=
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: apt
Tags: lucid
Uname: Linux 2.6.32-9-generic i686
Related branches
- Ubuntu Core Development Team: Pending requested
-
Diff: 443 lines (+76/-48)14 files modifiedapt-pkg/contrib/fileutl.cc (+10/-5)
doc/po/fr.po (+54/-32)
test/integration/framework (+1/-0)
test/integration/run-tests (+1/-1)
test/integration/test-autoremove (+1/-1)
test/integration/test-bug-590438-broken-provides-thanks-to-remove-order (+1/-1)
test/integration/test-bug-591882-conkeror (+1/-1)
test/integration/test-bug-595691-empty-and-broken-archive-files (+1/-1)
test/integration/test-bug-598669-install-postfix-gets-exim-heavy (+1/-1)
test/integration/test-compressed-indexes (+1/-1)
test/integration/test-disappearing-packages (+1/-1)
test/integration/test-pdiff-usage (+1/-1)
test/integration/test-policy-pinning (+1/-1)
test/integration/test-ubuntu-bug-614993 (+1/-1)
- Ubuntu Core Development Team: Pending requested
-
Diff: 73066 lines (+13639/-12297) (has conflicts)76 files modifiedapt-pkg/contrib/fileutl.cc (+26/-2)
apt-pkg/contrib/strutl.cc (+2/-2)
apt-pkg/deb/debindexfile.cc (+13/-9)
apt-pkg/deb/deblistparser.cc (+6/-0)
apt-pkg/deb/debsystem.cc (+2/-2)
apt-pkg/depcache.cc (+15/-1)
apt-pkg/packagemanager.cc (+3/-3)
apt-pkg/pkgcache.cc (+1/-0)
apt-pkg/pkgcache.h (+1/-1)
apt-pkg/policy.cc (+5/-4)
buildlib/debiandoc.mak (+2/-2)
buildlib/po4a_manpage.mak (+1/-1)
cmdline/apt-get.cc (+12/-0)
debian/apt.cron.daily (+15/-28)
debian/changelog (+158/-0)
debian/control (+1/-1)
doc/examples/configure-index (+1/-0)
doc/po/de.po (+292/-590)
doc/po/fr.po (+8/-4)
po/apt-all.pot (+278/-266)
po/ar.po (+278/-266)
po/ast.po (+299/-287)
po/bg.po (+278/-266)
po/bs.po (+278/-266)
po/ca.po (+375/-241)
po/cs.po (+278/-266)
po/cy.po (+278/-266)
po/da.po (+405/-226)
po/de.po (+350/-247)
po/dz.po (+278/-266)
po/el.po (+278/-266)
po/es.po (+278/-266)
po/eu.po (+278/-266)
po/fi.po (+278/-266)
po/fr.po (+278/-268)
po/gl.po (+278/-266)
po/he.po (+2/-2)
po/hu.po (+278/-266)
po/it.po (+284/-272)
po/ja.po (+278/-266)
po/km.po (+278/-266)
po/ko.po (+278/-266)
po/ku.po (+278/-266)
po/lt.po (+278/-266)
po/mr.po (+278/-266)
po/nb.po (+377/-236)
po/ne.po (+278/-266)
po/nl.po (+280/-268)
po/nn.po (+278/-266)
po/pl.po (+278/-266)
po/pt.po (+279/-267)
po/pt_BR.po (+278/-266)
po/ro.po (+278/-266)
po/ru.po (+279/-267)
po/sk.po (+278/-266)
po/sl.po (+278/-266)
po/sv.po (+278/-266)
po/th.po (+278/-266)
po/tl.po (+278/-266)
po/uk.po (+278/-266)
po/vi.po (+543/-535)
po/zh_CN.po (+278/-273)
po/zh_TW.po (+278/-266)
test/integration/Packages-policy-pinning (+12/-0)
test/integration/framework (+2/-1)
test/integration/run-tests (+1/-1)
test/integration/test-autoremove (+1/-1)
test/integration/test-bug-590438-broken-provides-thanks-to-remove-order (+1/-1)
test/integration/test-bug-591882-conkeror (+5/-5)
test/integration/test-bug-595691-empty-and-broken-archive-files (+91/-0)
test/integration/test-bug-598669-install-postfix-gets-exim-heavy (+22/-0)
test/integration/test-compressed-indexes (+1/-1)
test/integration/test-disappearing-packages (+1/-1)
test/integration/test-pdiff-usage (+1/-1)
test/integration/test-policy-pinning (+228/-0)
test/integration/test-ubuntu-bug-614993 (+62/-0)
Changed in apt (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Low |
Changed in apt (Debian): | |
status: | Unknown → Fix Released |
Changed in apt (Ubuntu): | |
status: | Confirmed → Triaged |
Changed in apt (Ubuntu): | |
milestone: | none → ubuntu-10.04-beta-1 |
Changed in apt (Ubuntu): | |
status: | Triaged → Fix Committed |
This is marked as fixed in 0.7.25.1, but still happens with 0.7.25.3ubuntu1 for me:
$ amad amarok | grep Sources | egrep 'lucid|karmic' de.archive. ubuntu. com lucid/main Sources archive. ubuntu. com lucid/main Sources de.archive. ubuntu. com karmic/main Sources
amarok | 2:2.2.2.90-0ubuntu3 | http://
amarok | 2:2.2.2.90-0ubuntu3 | http://
amarok | 2:2.2.0-0ubuntu2 | http://
$ LANG=C asrc amarok/karmic /code.launchpad .net/~kubuntu- members/ amarok/ ubuntu /code.launchpad .net/~kubuntu- members/ amarok/ ubuntu de.archive. ubuntu. com lucid/main amarok 2:2.2.2.90-0ubuntu3 (dsc) [1872B] de.archive. ubuntu. com lucid/main amarok 2:2.2.2.90-0ubuntu3 (tar) [9166kB] de.archive. ubuntu. com lucid/main amarok 2:2.2.2.90-0ubuntu3 (diff) [58.6kB] 2.2.2.90- 0ubuntu3. dsc 2.2.2.90. orig.tar. bz2 2.2.2.90- 0ubuntu3. debian. tar.gz disable_ qtscriptbinding s_check_ fix.diff mysql_no_ openssl_ fix.diff 03_restricted_ install. diff 05_kstatusnotif ieritem. diff
apt-get source amarok/karmic
Reading package lists... Done
Building dependency tree
Reading state information... Done
NOTICE: 'amarok' packaging is maintained in the 'Bzr' version control system at:
https:/
Please use:
bzr get https:/
to retrieve the latest (possibly unreleased) updates to the package.
Need to get 9227kB of source archives.
Get:1 http://
Get:2 http://
Get:3 http://
Fetched 9227kB in 0s (30.9MB/s)
gpgv: Signature made Tue Mar 2 23:58:17 2010 CET using DSA key ID 72F23991
gpgv: Can't check signature: public key not found
dpkg-source: warning: failed to verify signature on ./amarok_
dpkg-source: info: extracting amarok in amarok-2.2.2.90
dpkg-source: info: unpacking amarok_
dpkg-source: info: unpacking amarok_
dpkg-source: info: applying debian/
dpkg-source: info: applying debian/
dpkg-source: info: applying kubuntu/
dpkg-source: info: applying kubuntu/
W: Ignore unavailable target release 'karmic' of package 'amarok'
Getting by version fails, too: 2.2.0-0ubuntu2 2.2.0-0ubuntu2 /code.launchpad .net/~kubuntu- members/ amarok/ ubuntu /code.launchpad .net/~kubuntu- members/ amarok/ ubuntu 2.2.2.90- 0ubuntu3. dsc' 2.2.2.90. orig.tar. bz2' 2.2.2.90- 0ubuntu3. debian. tar.gz'
$ LANG=C asrc amarok=
apt-get source amarok=
Reading package lists... Done
Building dependency tree
Reading state information... Done
NOTICE: 'amarok' packaging is maintained in the 'Bzr' version control system at:
https:/
Please use:
bzr get https:/
to retrieve the latest (possibly unreleased) updates to the package.
Skipping already downloaded file 'amarok_
Skipping already downloaded file 'amarok_
Skipping already downloaded file 'amarok_
Need to get 0B of source archives.
Skipping unpack of already unpacked source in amarok-2.2.2.90
W: Ignore unavailable version '2.2.0-0ubuntu2' of package 'amarok'
But, selecting by epoch and version appears to work:
$ LANG=C asrc amarok= 2:2.2.0- 0ubuntu2 2:2.2.0- 0ubuntu2
apt-get source amarok=
Reading package lists... Done
Building dependency tree
Reading state information... Done
NOTICE: 'amarok' packaging is maintained in the 'Bzr' version contr...