[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#561971: "apt-get source" always downloads default version



Package: apt
Version: 0.7.25
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

[This is similar to #441178 but not the same IMO.]

`apt-get source $package/$release' and `apt-get source
$package=$version' (and `apt-get source -t $release $package') have
stopped working for me.

Example:

gregoa@belanna:/tmp/man-db$ rm -r *  
gregoa@belanna:/tmp/man-db$ apt-cache policy man-db
man-db:
  Installed: 2.5.6-4
  Candidate: 2.5.6-4
  Version table:
 *** 2.5.6-4 0
        500 http://ftp.at.debian.org testing/main Packages
        990 http://ftp.at.debian.org unstable/main Packages
        100 /var/lib/dpkg/status
     2.5.2-4 0
        500 http://ftp.at.debian.org stable/main Packages
     2.4.3-6 0
        500 http://ftp.at.debian.org oldstable/main Packages
gregoa@belanna:/tmp/man-db$ apt-get source -t stable man-db
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Need to get 2163kB of source archives.
Get:1 http://ftp.at.debian.org testing/main man-db 2.5.6-4 (dsc) [1090B]
Get:2 http://ftp.at.debian.org testing/main man-db 2.5.6-4 (tar) [2094kB]
Get:3 http://ftp.at.debian.org testing/main man-db 2.5.6-4 (diff) [67.3kB]
Fetched 2163kB in 0s (6007kB/s)
dpkg-source: info: extracting man-db in man-db-2.5.6
dpkg-source: info: unpacking man-db_2.5.6.orig.tar.gz
dpkg-source: info: applying man-db_2.5.6-4.diff.gz
dpkg-source: info: upstream files that have been modified: 
 man-db-2.5.6/lib/pipeline.c
 man-db-2.5.6/src/encodings.c
 man-db-2.5.6/src/encodings.h
 man-db-2.5.6/src/man.c
W: Ignore unavailable target release 'stable' of package 'man-db'
gregoa@belanna:/tmp/man-db$ apt-get source man-db/stable
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Skipping already downloaded file 'man-db_2.5.6-4.dsc'
Skipping already downloaded file 'man-db_2.5.6.orig.tar.gz'
Skipping already downloaded file 'man-db_2.5.6-4.diff.gz'
Need to get 0B of source archives.
Skipping unpack of already unpacked source in man-db-2.5.6
W: Ignore unavailable target release 'stable' of package 'man-db'
gregoa@belanna:/tmp/man-db$ apt-get source man-db=2.5.2-4
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Skipping already downloaded file 'man-db_2.5.6-4.dsc'
Skipping already downloaded file 'man-db_2.5.6.orig.tar.gz'
Skipping already downloaded file 'man-db_2.5.6-4.diff.gz'
Need to get 0B of source archives.
Skipping unpack of already unpacked source in man-db-2.5.6
W: Ignore unavailable version '2.5.2-4' of package 'man-db'


I.e., whatever I do, I only get the version from unstable and a "W: ".


Commenting out "APT::Default-Release "unstable";" in
/etc/apt/apt.conf doesn't help either, neither does commenting out
all pinnings in /etc/apt/preferences.

Looking through apt's changelog, it might be related to the changes
in cmdline/apt-get.cc; or is something wrong on my machine?

Trying on a different machine (with testing):

gregoa@guinan:/tmp/man-db$ dpkg -l apt
[...]
ii  apt                   0.7.23.1              Advanced front-end for dpkg
gregoa@guinan:/tmp/man-db$ rm -r *
rm: cannot remove `*': No such file or directory
gregoa@guinan:/tmp/man-db$ apt-cache policy man-db
man-db:
  Installed: 2.5.6-4
  Candidate: 2.5.6-4
  Version table:
 *** 2.5.6-4 0
        990 http://ftp.at.debian.org testing/main Packages
         10 http://ftp.at.debian.org unstable/main Packages
        100 /var/lib/dpkg/status
     2.5.2-4 0
        500 http://ftp.at.debian.org stable/main Packages
gregoa@guinan:/tmp/man-db$ apt-get source -t stable man-db
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Need to get 1838kB of source archives.
Get:1 http://ftp.at.debian.org stable/main man-db 2.5.2-4 (dsc) [1048B]
Get:2 http://ftp.at.debian.org stable/main man-db 2.5.2-4 (tar) [1773kB]
Get:3 http://ftp.at.debian.org stable/main man-db 2.5.2-4 (diff) [64.3kB]
Fetched 1838kB in 5s (344kB/s)
dpkg-source: info: extracting man-db in man-db-2.5.2
dpkg-source: info: unpacking man-db_2.5.2.orig.tar.gz
dpkg-source: info: applying man-db_2.5.2-4.diff.gz
dpkg-source: info: upstream files that have been modified: 
 man-db-2.5.2/include/manconfig.h.in
 man-db-2.5.2/lib/cleanup.c
 man-db-2.5.2/manual/files.me
 man-db-2.5.2/src/encodings.c
 man-db-2.5.2/src/manconv.c
 man-db-2.5.2/src/manp.c
gregoa@guinan:/tmp/man-db$ rm -r *
gregoa@guinan:/tmp/man-db$ apt-get source man-db/stable
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Need to get 1838kB of source archives.
Get:1 http://ftp.at.debian.org stable/main man-db 2.5.2-4 (dsc) [1048B]
Get:2 http://ftp.at.debian.org stable/main man-db 2.5.2-4 (tar) [1773kB]
Get:3 http://ftp.at.debian.org stable/main man-db 2.5.2-4 (diff) [64.3kB]
Fetched 1838kB in 0s (4816kB/s)
dpkg-source: info: extracting man-db in man-db-2.5.2
dpkg-source: info: unpacking man-db_2.5.2.orig.tar.gz
dpkg-source: info: applying man-db_2.5.2-4.diff.gz
dpkg-source: info: upstream files that have been modified: 
 man-db-2.5.2/include/manconfig.h.in
 man-db-2.5.2/lib/cleanup.c
 man-db-2.5.2/manual/files.me
 man-db-2.5.2/src/encodings.c
 man-db-2.5.2/src/manconv.c
 man-db-2.5.2/src/manp.c
gregoa@guinan:/tmp/man-db$ rm -r *
gregoa@guinan:/tmp/man-db$ apt-get source man-db=2.5.2-4
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Need to get 1838kB of source archives.
Get:1 http://ftp.at.debian.org stable/main man-db 2.5.2-4 (dsc) [1048B]
Get:2 http://ftp.at.debian.org stable/main man-db 2.5.2-4 (tar) [1773kB]
Get:3 http://ftp.at.debian.org stable/main man-db 2.5.2-4 (diff) [64.3kB]
Fetched 1838kB in 0s (5602kB/s)
dpkg-source: info: extracting man-db in man-db-2.5.2
dpkg-source: info: unpacking man-db_2.5.2.orig.tar.gz
dpkg-source: info: applying man-db_2.5.2-4.diff.gz
dpkg-source: info: upstream files that have been modified: 
 man-db-2.5.2/include/manconfig.h.in
 man-db-2.5.2/lib/cleanup.c
 man-db-2.5.2/manual/files.me
 man-db-2.5.2/src/encodings.c
 man-db-2.5.2/src/manconv.c
 man-db-2.5.2/src/manp.c

Seems to work as expected with apt 0.7.23.1 from testing. Let's
upgrade and try again:

gregoa@guinan:/tmp/man-db$ dpkg -l apt
[..]
ii  apt                   0.7.25                Advanced front-end for dpkg
gregoa@guinan:/tmp/man-db$ rm -r *
gregoa@guinan:/tmp/man-db$ apt-get source -t stable man-db
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Need to get 2163kB of source archives.
Get:1 http://ftp.at.debian.org testing/main man-db 2.5.6-4 (dsc) [1090B]
Get:2 http://ftp.at.debian.org testing/main man-db 2.5.6-4 (tar) [2094kB]
Get:3 http://ftp.at.debian.org testing/main man-db 2.5.6-4 (diff) [67.3kB]
Fetched 2163kB in 1s (1551kB/s)
dpkg-source: info: extracting man-db in man-db-2.5.6
dpkg-source: info: unpacking man-db_2.5.6.orig.tar.gz
dpkg-source: info: applying man-db_2.5.6-4.diff.gz
dpkg-source: info: upstream files that have been modified: 
 man-db-2.5.6/lib/pipeline.c
 man-db-2.5.6/src/encodings.c
 man-db-2.5.6/src/encodings.h
 man-db-2.5.6/src/man.c
W: Ignore unavailable target release 'stable' of package 'man-db'
gregoa@guinan:/tmp/man-db$ rm -r *
gregoa@guinan:/tmp/man-db$ apt-get source man-db/stable
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Need to get 2163kB of source archives.
Get:1 http://ftp.at.debian.org testing/main man-db 2.5.6-4 (dsc) [1090B]
Get:2 http://ftp.at.debian.org testing/main man-db 2.5.6-4 (tar) [2094kB]
Get:3 http://ftp.at.debian.org testing/main man-db 2.5.6-4 (diff) [67.3kB]
Fetched 2163kB in 0s (7473kB/s)
dpkg-source: info: extracting man-db in man-db-2.5.6
dpkg-source: info: unpacking man-db_2.5.6.orig.tar.gz
dpkg-source: info: applying man-db_2.5.6-4.diff.gz
dpkg-source: info: upstream files that have been modified: 
 man-db-2.5.6/lib/pipeline.c
 man-db-2.5.6/src/encodings.c
 man-db-2.5.6/src/encodings.h
 man-db-2.5.6/src/man.c
W: Ignore unavailable target release 'stable' of package 'man-db'
gregoa@guinan:/tmp/man-db$ rm -r *
gregoa@guinan:/tmp/man-db$ apt-get source man-db=2.5.2-4
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Need to get 2163kB of source archives.
Get:1 http://ftp.at.debian.org testing/main man-db 2.5.6-4 (dsc) [1090B]
Get:2 http://ftp.at.debian.org testing/main man-db 2.5.6-4 (tar) [2094kB]
Get:3 http://ftp.at.debian.org testing/main man-db 2.5.6-4 (diff) [67.3kB]
Fetched 2163kB in 0s (7429kB/s)
dpkg-source: info: extracting man-db in man-db-2.5.6
dpkg-source: info: unpacking man-db_2.5.6.orig.tar.gz
dpkg-source: info: applying man-db_2.5.6-4.diff.gz
dpkg-source: info: upstream files that have been modified: 
 man-db-2.5.6/lib/pipeline.c
 man-db-2.5.6/src/encodings.c
 man-db-2.5.6/src/encodings.h
 man-db-2.5.6/src/man.c
W: Ignore unavailable version '2.5.2-4' of package 'man-db'

Ok, on this machine (with default release set to testing) I get the
same results.

Commenting out APT::Default-Release and removing pinnings doesn't
help either.


It seems there's something broken between apt 0.7.23.1 and 0.7.25 :)


Cheers,
gregor

- -- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'oldstable'), (500, 'experimental'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32.200912080105
Locale: LANG=C, LC_CTYPE=de_AT@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages apt depends on:
ii  debian-archive-keyring        2009.01.31 GnuPG archive keys of the Debian a
ii  libc6                         2.10.2-2   GNU C Library: Shared libraries
ii  libgcc1                       1:4.4.2-6  GCC support library
ii  libstdc++6                    4.4.2-6    The GNU Standard C++ Library v3

apt recommends no packages.

Versions of packages apt suggests:
pn  apt-doc                       <none>     (no description available)
ii  aptitude                      0.6.1.3-3  terminal-based package manager (te
ii  bzip2                         1.0.5-3    high-quality block-sorting file co
ii  dpkg-dev                      1.15.5.4   Debian package development tools
ii  lzma                          4.43-14    Compression method of 7z format in
ii  python-apt                    0.7.13.4   Python interface to libapt-pkg

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBCAAGBQJLL6jJAAoJELs6aAGGSaoGjCsP/jqsfUmc6Lq6Y+4VAtePxalR
gj367Dz7D1eVtosXKrw1p1ogPvt2EqpbIbljYaYy+Pk36SoMeUk2+Sx7p+xVgeff
md9kb25t7REjINHqHo25fdEOPWUGBx4SsPz1jgsP3eqR2h7obo/DIat4F9GPRcQz
oE7+z3T9ayIOM71NpEieJW6MFcSVIhJrheBrSE7Jikxi1TN8+qRhpQCewwz9dSKR
M3HlgtrLK1ZXsiZwNA0PBucOB9NfsoEJ4Y4refpoibWKEHizHeB06qiOGUkuPsoL
uM21q86tCQT2XMgWwfB3XSD7RpMqPrhQxiV6w/q9CxRgaUpD/L7GZMiB1PagfQ+4
NhV9/o0pse6TBZWY7sUhGYv+QSFN9LsgtIc8+J/1bETOdj5QoEXfeTEuLR0h0gQT
Xt1s5C+TwoVB3AazGFp19gFWG3wucXspKV9hPNY++ttU75amEfI/xr0ssxcXb7dX
MH3N8m5dE1tt+xR+fwKBNWSfb/44R1dT3VubTRcWehEA0ozon9MA9i0H2ZrpMXuH
N686qMGL7KuzqFBLdobX4EJde2qmG7qMYDKmgrzw8qZNMNuICk/sxaMrbs86Cbd4
9/CnQOQyXDpHvRMWkhnvVzgKDyI6Yh4/T1iynyYY018B2qffQPnvyXC9+AxzPNz+
SNY6/gQW9GZRMCFBbbvj
=BOxP
-----END PGP SIGNATURE-----



Reply to: