Bug#431637: apt-get source reports "Unable to find a source package"
Package: apt
Version: 0.7.3
Severity: normal
apt-get source is playing silly buggers, and I don't understand why.
$ cd `mktemp -d`
$ grep -v ^# /etc/apt/sources.list
deb-src http://ftp.debian.org/debian experimental main
$ sudo apt-get update &&
> sudo apt-get source aptitude
Get:1 http://ftp.debian.org experimental Release.gpg [189B]
Hit http://ftp.debian.org experimental Release
Hit http://ftp.debian.org experimental/main Sources/DiffIndex
Fetched 1B in 0s (12B/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Need to get 5947kB of source archives.
Get:1 http://ftp.debian.org experimental/main aptitude 0.4.5.3-1 (dsc) [809B]
Get:2 http://ftp.debian.org experimental/main aptitude 0.4.5.3-1 (tar) [5413kB]
Get:3 http://ftp.debian.org experimental/main aptitude 0.4.5.3-1 (diff) [533kB]
Fetched 5947kB in 21s (271kB/s)
gpg: fatal: can't create directory `/home/twb/.gnupg': File exists
secmem usage: 0/0 bytes in 0/0 blocks of pool 0/32768
dpkg-source: extracting aptitude in aptitude-0.4.5.3
dpkg-source: unpacking aptitude_0.4.5.3.orig.tar.gz
dpkg-source: applying ./aptitude_0.4.5.3-1.diff.gz
$ sudo sed -i -e '1adeb http://ftp.debian.org/debian unstable main' /etc/apt/sources.list
$ grep -v ^# /etc/apt/sources.list
deb-src http://ftp.debian.org/debian experimental main
deb http://ftp.debian.org/debian unstable main
$ sudo apt-get update &&
> sudo apt-get source aptitude
Get:1 http://ftp.debian.org experimental Release.gpg [189B]
Get:2 http://ftp.debian.org unstable Release.gpg [189B]
Ign http://ftp.debian.org unstable/main Translation-en_AU
Hit http://ftp.debian.org experimental Release
Get:3 http://ftp.debian.org unstable Release [79.6kB]
Hit http://ftp.debian.org experimental/main Sources/DiffIndex
Get:4 http://ftp.debian.org unstable/main Packages [4733kB]
Fetched 4813kB in 15s (304kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to find a source package for aptitude
$ grep -A 15 '^Package: aptitude$' /var/lib/apt/lists/ftp.debian.org_debian_dists_experimental_main_source_Sources
Package: aptitude
Binary: aptitude-doc-fi, aptitude, aptitude-doc-cs, aptitude-doc-fr, aptitude-doc-en
Version: 0.4.5.3-1
Priority: important
Section: admin
Maintainer: Daniel Burrows <dburrows@debian.org>
Build-Depends: libapt-pkg-dev (>= 0.7.0), debhelper (>= 4.0.0), libsigc++-2.0-dev, libcppunit-dev, libncursesw5-dev, gettext, g++ (>= 4:3.2.2-0), docbook-xsl, docbook-xml, xsltproc, html2text, po4a
Architecture: any
Standards-Version: 3.6.1.0
Format: 1.0
Directory: pool/main/a/aptitude
Files:
a2de836b2ef83b300f61e3464c66aedf 809 aptitude_0.4.5.3-1.dsc
81ac80884548bb3f2cf8dd2bc83c3595 5413304 aptitude_0.4.5.3.orig.tar.gz
641fe6396b0346f6903c338a7a6e9481 533272 aptitude_0.4.5.3-1.diff.gz
$ grep -A 26 '^Package: aptitude$' /var/lib/apt/lists/ftp.debian.org_debian_dists_unstable_main_binary-amd64_Packages
Package: aptitude
Priority: important
Section: admin
Installed-Size: 8688
Maintainer: Daniel Burrows <dburrows@debian.org>
Architecture: amd64
Source: aptitude (0.4.4-4)
Version: 0.4.4-4+b1
Depends: libapt-pkg-libc6.5-6-4.4, libc6 (>= 2.5-5), libgcc1 (>= 1:4.2-20070516), libncursesw5 (>= 5.4-5), libsigc++-2.0-0c2a (>= 2.0.2), libstdc++6 (>= 4.2-20070516)
Recommends: aptitude-doc-en | aptitude-doc, libparse-debianchangelog-perl
Suggests: tasksel, debtags
Filename: pool/main/a/aptitude/aptitude_0.4.4-4+b1_amd64.deb
Size: 2873204
MD5sum: 1a14a81c7ef57b665b8bd93b7b947007
SHA1: 0b67fe31018fa1a2701875c97116a1ce2142bfd8
SHA256: 00eb20ee1302d36d99f8f1acaeccbddef40605453a3964d31a6115dd6645cdeb
Description: terminal-based apt frontend
aptitude is a terminal-based apt frontend with a number of useful
features, including: a mutt-like syntax for matching packages in a
flexible manner, dselect-like persistence of user actions, the
ability to retrieve and display the Debian changelog of most
packages, and a command-line mode similar to that of apt-get.
.
aptitude is also Y2K-compliant, non-fattening, naturally cleansing,
and housebroken.
Tag: admin::configuring, admin::package-management, implemented-in::c++, interface::text-mode, role::program, scope::application, suite::debian, uitoolkit::ncurses, use::browsing, use::configuring, works-with::software:package
$
-- Package-specific info:
-- apt-config dump --
APT "";
APT::Architecture "amd64";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Install-Recommends "0";
APT::Install-Suggests "0";
APT::Authentication "";
APT::Authentication::TrustCDROM "true";
APT::NeverAutoRemove "";
APT::NeverAutoRemove:: "^linux-image.*";
APT::NeverAutoRemove:: "^linux-restricted-modules.*";
APT::Default-Release "unstable";
APT::Acquire "";
APT::Acquire::Translation "environment";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::userstatus "status.user";
Dir::State::status "/var/lib/dpkg/status";
Dir::Cache "var/cache/apt/";
Dir::Cache::archives "archives/";
Dir::Cache::srcpkgcache "srcpkgcache.bin";
Dir::Cache::pkgcache "pkgcache.bin";
Dir::Etc "etc/apt/";
Dir::Etc::sourcelist "sources.list";
Dir::Etc::sourceparts "sources.list.d";
Dir::Etc::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::dpkg "/usr/bin/dpkg";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
-- (no /etc/apt/preferences present) --
-- /etc/apt/sources.list --
deb-src http://ftp.debian.org/debian experimental main
deb http://ftp.debian.org/debian unstable main
# deb http://ftp.debian.org/debian unstable main
# deb http://apt:3142/ftp.debian.org/debian unstable main contrib non-free
# deb http://apt:3142/ftp.debian.org/debian experimental main contrib non-free
# deb-src http://apt:3142/ftp.debian.org/debian unstable main contrib non-free
# deb-src http://apt:3142/ftp.debian.org/debian experimental main contrib non-free
## Debian Live toolchain svn snapshots
# deb http://apt:3142/live.debian.net/debian-snapshots ./
## http://people.debian.org/~terpstra/message/20070406.170223.b98564f2.en.html
# deb-src http://apt:3142/emacs.orebokech.com sid main
## http://www.emacswiki.org/cgi-bin/wiki/MultiTTYSupport
# deb-src http://apt:3142/aszt.inf.elte.hu/~lorentey/mirror/apt sid main
## Use one of these for libdvdcss, needed to play encrypted DVDs.
# deb http://apt:3142/www.debian-multimedia.org unstable main
# deb http://apt:3142/ftp.debian-unofficial.org/debian unstable main # contrib non-free restricted
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (990, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.21-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages apt depends on:
ii debian-archive-keyring 2007.02.19-0.1 GnuPG archive keys of the Debian a
ii libc6 2.5-11 GNU C Library: Shared libraries
ii libgcc1 1:4.2-20070627-1 GCC support library
ii libstdc++6 4.2-20070627-1 The GNU Standard C++ Library v3
apt recommends no packages.
-- no debconf information
Reply to: