Bug#812492: [apt]: apt-get build-dep does not fetch sources for binary NMUs
Package: apt
Version: 1.2
Severity: normal
File: /usr/bin/apt-get
Dear Maintainer,
Like the title says 'apt-get build-dep' does not retrieve the dependencies
if the binary package is a NMU upload. For example, consider mlterm:
apt-cache policy mlterm
mlterm:
Installed: (none)
Candidate: 3.5.0-1+b1
Version table:
3.5.0-1+b1 990
990 http://ftp.debian.org/debian stretch/main amd64 Packages
-10 http://ftp.debian.org/debian sid/main amd64 Packages
Now, try to get its build deps:
sudo apt-get build-dep mlterm
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Can not find version '3.5.0-1+b1' of package 'mlterm'
E: Unable to find a source package for mlterm
The same error persists even when I explicitly specify the version
(sudo apt-get build-dep mlterm=3.5.0-1+b1)
-- Package-specific info:
-- /etc/apt/apt.conf:
APT::Default-Release "stretch";
APT::Install-Recommends "0";
APT::Install-Suggests "0";
APT::Get::AutomaticRemove "1";
APT::Get::Build-Dep-Automatic "1";
-- /etc/apt/sources.list:
deb http://ftp.debian.org/debian stretch main contrib non-free
deb-src http://ftp.debian.org/debian stretch main contrib non-free
deb http://security.debian.org/ stretch/updates main contrib non-free
deb-src http://security.debian.org/ stretch/updates main contrib non-free
deb http://ftp.debian.org/debian stretch-updates main contrib non-free
deb-src http://ftp.debian.org/debian stretch-updates main contrib non-free
deb-src http://ftp.debian.org/debian/ sid main
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (990, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
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.2
ii libc6 2.21-6
ii libgcc1 1:5.3.1-5
ii libstdc++6 5.3.1-5
apt recommends no packages.
Versions of packages apt suggests:
pn apt-doc <none>
ii aptitude 0.7.5-3
ii dpkg-dev 1.18.4
ii python-apt 1.1.0~beta1
ii synaptic 0.83
-- no debconf information
Reply to: