I’ve tried, and failed, to use apt to download a source package,
and had to resort using dget with an URI from packages.d.o:
root@ara3:~ # apt-get -d source konsole
Reading package lists... Done
Building dependency tree
Reading state information... Done
Picking 'kdebase' as source package instead of 'konsole'
E: Unable to find a source package for kdebase
100|root@ara3:~ # apt-cache showsrc konsole
Package: konsole
Binary: konsole, konsole-dbg
Version: 4:4.8.4-1
Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Uploaders: José Manuel Santamaría Lema <panfaust@gmail.com>, Eshat Cakar <info@eshat.de>, Modestas Vainius <modax@debian.org>
Build-Depends: kde-sc-dev-latest (>= 4:4.8.4), cmake, debhelper (>= 7.3.16), pkg-kde-tools (>= 0.12), kdelibs5-dev (>= 4:4.8), libkonq5-dev (>= 4:4.8), libphonon-dev (>= 4:4.3.0), libxkbfile-dev
Architecture: any
Standards-Version: 3.9.3
Format: 3.0 (quilt)
Files:
91d938650ad3e31eeaf6f213e27eb6e9 1521 konsole_4.8.4-1.dsc
4a6e9477d3a2104853b2faceb7c2e352 441968 konsole_4.8.4.orig.tar.xz
496b66e5aac1130aa818a8b5ddfd5fca 5035 konsole_4.8.4-1.debian.tar.gz
Vcs-Browser: http://git.debian.org/?p=pkg-kde/kde-sc/konsole.git
Vcs-Git: git://git.debian.org/pkg-kde/kde-sc/konsole.git
Checksums-Sha1:
f7f9e88fe71f72c4fea52ce1f39682cf0134079c 1521 konsole_4.8.4-1.dsc
a5900aa089a28fcaa69b45cfc7b46f556a38bd11 441968 konsole_4.8.4.orig.tar.xz
853fe0106e620c29d78c2df7af72e93ca6ed0cab 5035 konsole_4.8.4-1.debian.tar.gz
Checksums-Sha256:
efdb130d7e40906c0ba3fd834bcc14fde4cb2b7ed10dc7988e9e578f7fd89f02 1521 konsole_4.8.4-1.dsc
85001aefb81c6455562847e15b99fba28aa40ffa6df8fead8ba6c826b096cf81 441968 konsole_4.8.4.orig.tar.xz
0eb029fb16d0fdf5026054f9c348d9f435a8cd0ab759a73a7deec327e71c24a6 5035 konsole_4.8.4-1.debian.tar.gz
Homepage: http://www.kde.org/
Package-List:
konsole deb kde optional
konsole-dbg deb debug extra
Directory: pool/main/k/konsole
Priority: source
Section: kde
Package: konsole
Binary: konsole, konsole-dbg
Version: 4:4.8.4-2
Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Uploaders: José Manuel Santamaría Lema <panfaust@gmail.com>, Eshat Cakar <info@eshat.de>, Modestas Vainius <modax@debian.org>
Build-Depends: kde-sc-dev-latest (>= 4:4.8.4), cmake, debhelper (>= 7.3.16), pkg-kde-tools (>= 0.12), kdelibs5-dev (>= 4:4.8), libkonq5-dev (>= 4:4.8), libphonon-dev (>= 4:4.3.0), libxkbfile-dev
Architecture: any
Standards-Version: 3.9.3
Format: 3.0 (quilt)
Files:
369a4da81a9fb74e535ec42edfdafc5d 1513 konsole_4.8.4-2.dsc
4a6e9477d3a2104853b2faceb7c2e352 441968 konsole_4.8.4.orig.tar.xz
b578901ecc70e5db9efc84fb1bb0f826 5759 konsole_4.8.4-2.debian.tar.gz
Vcs-Browser: http://git.debian.org/?p=pkg-kde/kde-sc/konsole.git
Vcs-Git: git://git.debian.org/pkg-kde/kde-sc/konsole.git
Checksums-Sha1:
33c9719a9fbae6f863262076ae17a1aa6985478f 1513 konsole_4.8.4-2.dsc
a5900aa089a28fcaa69b45cfc7b46f556a38bd11 441968 konsole_4.8.4.orig.tar.xz
e68601560718d6a6416d61f9fee05f01b9d93978 5759 konsole_4.8.4-2.debian.tar.gz
Checksums-Sha256:
c50934b3def4856f3b16adf9ce46e14c2220d6fbf0f187e04e33cee73b4c4058 1513 konsole_4.8.4-2.dsc
85001aefb81c6455562847e15b99fba28aa40ffa6df8fead8ba6c826b096cf81 441968 konsole_4.8.4.orig.tar.xz
7cc699b1a540d0d92ae44e0b7e150aed1e19699e845fee15c7757320bf48be85 5759 konsole_4.8.4-2.debian.tar.gz
Homepage: http://www.kde.org/
Package-List:
konsole deb kde optional
konsole-dbg deb debug extra
Directory: pool/main/k/konsole
Priority: source
Section: kde
root@ara3:~ # apt-get -d source konsole=4:4.8.4-2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Picking 'kdebase' as source package instead of 'konsole'
E: Ignore unavailable version '4:4.8.4-2' of package 'konsole'
E: Unable to find a source package for kdebase
100|root@ara3:~ # apt-get -d source src:konsole=4:4.8.4-2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Ignore unavailable version '4:4.8.4-2' of package 'src:konsole'
E: Unable to find a source package for src:konsole
I don’t know why apt insists on overriding me telling it that
I want a *source* package. The root cause here is probably
that the archive knows of a binary package named konsole,
which is made from a source package named kdebase:
root@ara3:~ # apt-cache policy konsole
konsole:
Installed: (none)
Candidate: 4:3.5.9.dfsg.1-6
Version table:
4:3.5.9.dfsg.1-6 0
500 http://ftp.debian-ports.org/debian/ unstable/main m68k Packages
root@ara3:~ # apt-cache show konsole=4:3.5.9.dfsg.1-6 | fgrep Source
Source: kdebase
But I don’t want the source for that! I want the current
source so I can build it.
I think the selection mechanism is mapping the binary→source name
too early. I should be able to get what I want from explicitly
specifying a version. I should also be able to get what I want
from prefixing “src:” (even without telling it a version number,
but, as you can see, even with one *and* src: it doesn’t work).