Package: apt Version: 1.1.3 Severity: normal The apt versions since stable have a bug in which apt-get source fails to find the source package when the binary package has additional version information. E.g. the current gdb version in testing 7.10-1+b1.
Here are some reproducible steps for a clean version of debian showing that stable (1.0.9) works and testing (1.1.10) does not. The bug report version 1.1.3 also has the error, so the regression happened anywhere between 1.0.9 and 1.1.3. docker -ti --rm debian:{stable,testing} Steps in both containers: echo "deb-src http://httpredir.debian.org/debian testing main" >> /etc/apt/sources.list apt-get update apt-get source gdb/testing stable: root@fd4bd6bde15f:/# apt-cache show apt Package: apt Status: install ok installed Version: 1.0.9.8.1 [...] root@ec1b1e2b13c9:/# apt-get source gdb/testing Reading package lists... Done Building dependency tree Reading state information... Done Selected version '7.10-1' (testing) for gdb NOTICE: 'gdb' packaging is maintained in the 'Git' version control system at: git://anonscm.debian.org/pkg-gdb/gdb.git Need to get 19.2 MB of source archives. Get:1 http://httpredir.debian.org/debian/ testing/main gdb 7.10-1 (dsc) [2756 B] Get:2 http://httpredir.debian.org/debian/ testing/main gdb 7.10-1 (tar) [19.1 MB] Get:3 http://httpredir.debian.org/debian/ testing/main gdb 7.10-1 (diff) [52.5 kB] Fetched 19.2 MB in 1s (13.8 MB/s) testing: root@8d2234fed551:/# apt-cache show apt Package: apt Status: install ok installed Architecture: amd64 Version: 1.1.10 [...] root@84f326c749e0:/# apt-get source gdb/testing Reading package lists... Done Building dependency tree... Done E: Can not find version '7.10-1+b1' of package 'gdb' E: Unable to find a source package for gdb Using the option --only-source works on testing. -- Package-specific info: -- (/etc/apt/preferences present, but not submitted) -- -- (/etc/apt/sources.list present, but not submitted) -- -- System Information: Debian Release: stretch/sid APT prefers testing APT policy: (550, 'testing'), (500, 'stable'), (210, 'unstable'), (1, 'experimental') Architecture: i386 (x86_64) Kernel: Linux 3.17.8-64+ (SMP w/32 CPU cores; PREEMPT) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) Versions of packages apt depends on: ii adduser 3.113+nmu3 ii debian-archive-keyring 2014.3 ii gnupg 1.4.20-1 ii gnupg2 2.0.28-3 ii gpgv 1.4.20-1 ii libapt-pkg5.0 1.1.3 ii libc6 2.19-22bfw1 ii libgcc1 1:5.3.1-5bfw1 ii libstdc++6 5.3.1-5bfw1 apt recommends no packages. Versions of packages apt suggests: pn apt-doc <none> ii aptitude 0.7.4-1bfw1 ii dpkg-dev 1.18.4 ii python-apt 1.1.0~beta1 -- Configuration Files: /etc/logrotate.d/apt changed [not included] -- no debconf information