Missing source package name for source_by_source().

Bug #320273 reported by bJXjLjEHIaWT0tFd
40
This bug affects 7 people
Affects Status Importance Assigned to Milestone
apt-build (Debian)
Fix Released
Unknown
apt-build (Ubuntu)
Fix Released
Undecided
Unassigned
Declined for Jaunty by Steve Langasek

Bug Description

Binary package hint: apt-build

My apt-build 0.12.37 on jaunty doesn't even seem to try downloading anything and instead immediately fails with "Missing source package name for source_by_source()."

niels@ordimini:~$ sudo apt-build install kdebluetooth
kdebluetooth will not be built because it doesn't have a source package.
Missing source package name for source_by_source().

niels@ordimini:~$ apt-build -v
apt-build version 0.12.37

niels@ordimini:~$ apt-cache showsrc kdebluetooth
Package: kdebluetooth
Binary: kdebluetooth
Version: 1:0.3-0ubuntu1
Priority: optional
Section: kde
Maintainer: Kubuntu Developers <email address hidden>
Original-Maintainer: Debian KDE Extras Team <email address hidden>
Build-Depends: debhelper (>= 6), cmake, cdbs, kdelibs5-dev, kdebase-workspace-dev, quilt
Architecture: any
Standards-Version: 3.7.3
Format: 1.0
Directory: pool/main/k/kdebluetooth
Files:
 fa4eebcf32f39838ce89f5e8e0207b3b 1262 kdebluetooth_0.3-0ubuntu1.dsc
 cdba112e9bd42bd1e3db8ff720fdcb83 79143 kdebluetooth_0.3.orig.tar.gz
 af90dc5499e01a186d4352423aa8af13 6670 kdebluetooth_0.3-0ubuntu1.diff.gz
Uploaders: Michael Meskes <email address hidden>, Achim Bohnet <email address hidden>, Mark Purcell <email address hidden>
Checksums-Sha1:
 93d41ec8503119a3f42beae48db3eda0648fe935 79143 kdebluetooth_0.3.orig.tar.gz
 a8547d434ff0e4c8632efdb853f8e549aa89a035 6670 kdebluetooth_0.3-0ubuntu1.diff.gz
Checksums-Sha256:
 a6cf44b03cc037dcab59da790ab23bd8cc33e81d2fb1d06989a36c11db042415 79143 kdebluetooth_0.3.orig.tar.gz
 bdcb5c6a86a19d791d7789ed7ce89f825456704ebaa16030bb43050d92380c9e 6670 kdebluetooth_0.3-0ubuntu1.diff.gz

niels@ordimini:~$ cat /etc/apt/sources.list
# deb cdrom:[Kubuntu 9.04 _Jaunty Jackalope_ - Alpha amd64 (20090116)]/ jaunty main restricted

deb http://de.archive.ubuntu.com/ubuntu/ jaunty main multiverse universe restricted
deb-src http://de.archive.ubuntu.com/ubuntu/ jaunty main multiverse universe restricted

deb http://de.archive.ubuntu.com/ubuntu/ jaunty-updates main multiverse universe restricted
deb-src http://de.archive.ubuntu.com/ubuntu/ jaunty-updates main multiverse universe restricted

deb http://archive.canonical.com/ubuntu jaunty partner
deb-src http://archive.canonical.com/ubuntu jaunty partner

deb http://security.ubuntu.com/ubuntu jaunty-security main multiverse universe restricted
deb-src http://security.ubuntu.com/ubuntu jaunty-security main multiverse universe restricted

deb file:/var/cache/apt-build/repository apt-build main

Revision history for this message
In , Julien Danjou (jdanjou) wrote : Re: Bug#314155: Unable to find source information for hpijs at /usr/bin/apt-build line 475. (source is called 'hplip')

On Wed, Jun 15, 2005 at 12:20:43AM +0200, KnuX wrote:
> Package: apt-build
> Version: 0.12.9
> Severity: normal
>
>
> During an "apt-build upgrade", the 'hpijs' package will be upgraded but 'apt-build' is "Unable to find source
> information" while 'apt' seems to find it :
>
> $ apt-get source hpijs
> Lecture des listes de paquets... Fait
> Construction de l'arbre des dépendances... Fait
> Nécessité de prendre 10,9Mo dans les sources.
> Réception de : 1 ftp://ftp.fr.debian.org unstable/main hplip 0.9.3-2 (dsc) [1081B]
> Réception de : 2 ftp://ftp.fr.debian.org unstable/main hplip 0.9.3-2 (tar) [10,9MB]
> Réception de : 3 ftp://ftp.fr.debian.org unstable/main hplip 0.9.3-2 (diff) [89,2kB]
> 10,9Mo réceptionnés en 2m16s (80,5ko/s)
>
> An "apt-cache show hpijs" give us an essential information I think : "Source: hplip".
>

What returns:
apt-cache policy hpijs
apt-cache show hpijs

--
Julien Danjou
.''`. Debian Developer
: :' : http://julien.danjou.info
`. `' http://people.debian.org/~acid
  `- 9A0D 5FD9 EB42 22F6 8974 C95C A462 B51E C2FE E5CD

Revision history for this message
In , KnuX (hidden-palace) wrote :

They return this :

---

# apt-cache policy hpijs
hpijs:
  Installed: 2.1.3+0.9.3-1
  Candidate: 2.1.3+0.9.3-2
  Version Table:
     2.1.3+0.9.3-2 0
        500 ftp://ftp.fr.debian.org unstable/main Packages
 *** 2.1.3+0.9.3-1 0
        100 /var/lib/dpkg/status

---

# apt-cache show hpijs
Package: hpijs
Priority: optional
Section: text
Installed-Size: 684
Maintainer: Henrique de Moraes Holschuh <email address hidden>
Architecture: i386
Source: hplip (0.9.3-2)
Version: 2.1.3+0.9.3-2
Depends: libc6 (>= 2.3.2.ds1-21), libgcc1 (>= 1:3.4.1-3), libjpeg62,
libstdc++5 (>= 1:3.3.4-1), gs-gpl (>= 8.01-5) | gs-esp (>= 7.07.01-8) |
gs-afpl (>= 7.04-2)
Suggests: hplip | hplip-base | hpoj, hplip-ppds, foomatic-filters-ppds,
foomatic-filters
Conflicts: hplip-ppds (<< 0.9.3-2), hplip-ppds (>> 0.9.3-2)
Filename: pool/main/h/hplip/hpijs_2.1.3+0.9.3-2_i386.deb
Size: 218930
MD5sum: d528e0abc9a5b844540d80049a6b4ebd
Description: HP Linux Printing and Imaging - gs IJS driver (hpijs)
 This package contains the hpijs binary which provides Ghostscript
 with an IJS driver for most inkjet printers and some LaserJet printers
 manufactured by HP.
 .
 It includes the so-called rss patch, to use pure black ink instead
 of composite black in printers that don't do color map conversion
 in firmware.
 .
 Users of USB and JetDirect HP printers are advised to also install the
 hplip package, and use the hp CUPS backend to send data to the printer.
 Selecting any hpijs ppd in CUPS will use hpijs automatically.
 .
 Users of parallel-port HP printers are advised to install the hpoj
 package, and use it to send the hpijs output to the printer.
 .
 HPIJS is meant to be used through the foomatic system (see the
 foomatic-filters package).
 .
  Homepage: http://hpinkjet.sourceforge.net

Package: hpijs
Status: install ok installed
Priority: optional
Section: utils
Installed-Size: 684
Maintainer: Henrique de Moraes Holschuh <email address hidden>
Architecture: i386
Source: hplip (0.9.3-1)
Version: 2.1.3+0.9.3-1
Depends: libc6 (>= 2.3.2.ds1-21), libgcc1 (>= 1:3.4.1-3), libjpeg62,
libstdc++5 (>= 1:3.3.4-1), gs-gpl (>= 8.01-5) | gs-esp (>= 7.07.01-8) |
gs-afpl (>= 7.04-2)
Suggests: hplip | hplip-base | hpoj, foomatic-filters-ppds, foomatic-filters
Description: HP Linux Printing and Imaging - gs IJS driver (hpijs)
 This package contains the hpijs binary which provides Ghostscript
 with an IJS driver for most inkjet printers and some LaserJet printers
 manufactured by HP.
 .
 It includes the so-called rss patch, to use pure black ink instead
 of composite black in printers that don't do color map conversion
 in firmware.
 .
 Users of USB and JetDirect HP printers are advised to also install the
 hplip package, and use the hp CUPS backend to send data to the printer.
 Selecting any hpijs ppd in CUPS will use hpijs automatically.
 .
 Users of parallel-port HP printers are advised to install the hpoj
 package, and use it to send the hpijs output to the printer.
 .
 HPIJS is meant to be used through the foomatic system (see the
 foomatic-filters package).
 .
  Homepage: http://hpinkjet.sourceforge.net

---

Revision history for this message
In , Filipus Klutiero (ido) wrote : Binary package and associated source package versions differ

Hi,
in case nobody realized yet, this is caused by the [unusual] difference
between the version of hpijs and its associated source package hplip.
See for example #293259 for similar breakage.

Revision history for this message
bJXjLjEHIaWT0tFd (bjxjljehiawt0tfd-deactivatedaccount) wrote :

Binary package hint: apt-build

My apt-build 0.12.37 on jaunty doesn't even seem to try downloading anything and instead immediately fails with "Missing source package name for source_by_source()."

niels@ordimini:~$ sudo apt-build install kdebluetooth
kdebluetooth will not be built because it doesn't have a source package.
Missing source package name for source_by_source().

niels@ordimini:~$ apt-build -v
apt-build version 0.12.37

niels@ordimini:~$ apt-cache showsrc kdebluetooth
Package: kdebluetooth
Binary: kdebluetooth
Version: 1:0.3-0ubuntu1
Priority: optional
Section: kde
Maintainer: Kubuntu Developers <email address hidden>
Original-Maintainer: Debian KDE Extras Team <email address hidden>
Build-Depends: debhelper (>= 6), cmake, cdbs, kdelibs5-dev, kdebase-workspace-dev, quilt
Architecture: any
Standards-Version: 3.7.3
Format: 1.0
Directory: pool/main/k/kdebluetooth
Files:
 fa4eebcf32f39838ce89f5e8e0207b3b 1262 kdebluetooth_0.3-0ubuntu1.dsc
 cdba112e9bd42bd1e3db8ff720fdcb83 79143 kdebluetooth_0.3.orig.tar.gz
 af90dc5499e01a186d4352423aa8af13 6670 kdebluetooth_0.3-0ubuntu1.diff.gz
Uploaders: Michael Meskes <email address hidden>, Achim Bohnet <email address hidden>, Mark Purcell <email address hidden>
Checksums-Sha1:
 93d41ec8503119a3f42beae48db3eda0648fe935 79143 kdebluetooth_0.3.orig.tar.gz
 a8547d434ff0e4c8632efdb853f8e549aa89a035 6670 kdebluetooth_0.3-0ubuntu1.diff.gz
Checksums-Sha256:
 a6cf44b03cc037dcab59da790ab23bd8cc33e81d2fb1d06989a36c11db042415 79143 kdebluetooth_0.3.orig.tar.gz
 bdcb5c6a86a19d791d7789ed7ce89f825456704ebaa16030bb43050d92380c9e 6670 kdebluetooth_0.3-0ubuntu1.diff.gz

niels@ordimini:~$ cat /etc/apt/sources.list
# deb cdrom:[Kubuntu 9.04 _Jaunty Jackalope_ - Alpha amd64 (20090116)]/ jaunty main restricted

deb http://de.archive.ubuntu.com/ubuntu/ jaunty main multiverse universe restricted
deb-src http://de.archive.ubuntu.com/ubuntu/ jaunty main multiverse universe restricted

deb http://de.archive.ubuntu.com/ubuntu/ jaunty-updates main multiverse universe restricted
deb-src http://de.archive.ubuntu.com/ubuntu/ jaunty-updates main multiverse universe restricted

deb http://archive.canonical.com/ubuntu jaunty partner
deb-src http://archive.canonical.com/ubuntu jaunty partner

deb http://security.ubuntu.com/ubuntu jaunty-security main multiverse universe restricted
deb-src http://security.ubuntu.com/ubuntu jaunty-security main multiverse universe restricted

deb file:/var/cache/apt-build/repository apt-build main

Revision history for this message
In , Sascha Silbe (sascha-debian-bugs-apt-build-1) wrote : apt-build: happens for bsdutils as well
Download full text (3.8 KiB)

Package: apt-build
Version: 0.12.37
Severity: normal

Happens for bsdutils as well (binary package bsdutils uses epoch 1, source package util-linux doesn't use an epoch):

twin:/# apt-build install bsdutils
bsdutils will not be built because it doesn't have a source package.
Missing source package name for source_by_source().
twin:/# apt-cache policy bsdutils
bsdutils:
  Installed: 1:2.13.1.1-1
  Candidate: 1:2.13.1.1-1
  Version table:
 *** 1:2.13.1.1-1 0
        500 http://ftp.de.debian.org squeeze/main Packages
        100 /var/lib/dpkg/status
twin:/# apt-cache show bsdutils
Package: bsdutils
Essential: yes
Priority: required
Section: utils
Installed-Size: 164
Maintainer: LaMont Jones <email address hidden>
Architecture: i386
Source: util-linux (2.13.1.1-1)
Version: 1:2.13.1.1-1
Depends: libc6 (>= 2.7-1)
Recommends: bsdmainutils
Filename: pool/main/u/util-linux/bsdutils_2.13.1.1-1_i386.deb
Size: 61710
MD5sum: 51ee792a8ed9a72b78cb8bff86d0714a
SHA1: 4ccb48f12d0b57ff1744b5a288d44e7ac40ec855
SHA256: 04931f8005d6f95bf385e8ca90873d3ea88a38d247a0badbce63649727a37b89
Description: Basic utilities from 4.4BSD-Lite
 This package contains the bare minimum number of BSD utilities needed
 to boot a Debian system. You should probably also install
 bsdmainutils to get the remaining standard BSD utilities.
 .
 Included are: cal, col, colcrt, colrm, column, logger, renice,
 script, scriptreplay, ul, wall
Tag: admin::logging, implemented-in::c, interface::commandline, role::program, scope::utility, suite::bsd, works-with::software:running, works-with::text

twin:/# apt-cache showsrc util-linux
Package: util-linux
Binary: util-linux, util-linux-locales, mount, bsdutils, fdisk-udeb, cfdisk-udeb
Version: 2.13.1.1-1
Priority: required
Section: utils
Maintainer: LaMont Jones <email address hidden>
Build-Depends: debhelper (>= 5), dpkg-dev (>= 1.13.12), gettext, libblkid-dev, libncurses5-dev, libselinux1-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], libslang2-dev (>= 2.0.4), lsb-release, uuid-dev, zlib1g-dev
Architecture: any
Standards-Version: 3.7.3.0
Format: 1.0
Directory: pool/main/u/util-linux
Files:
 ffc72fe1bd629daee8d25ffedd796af8 947 util-linux_2.13.1.1-1.dsc
 adc94b2951d0e97cbbda8b2bbdc55c00 4022334 util-linux_2.13.1.1.orig.tar.gz
 05256573ef054f1dfd9013e1f15a49e8 70480 util-linux_2.13.1.1-1.diff.gz
Vcs-Browser: http://git.debian.org/?p=users/lamont/util-linux.git
Vcs-Git: git://git.debian.org/~lamont/util-linux.git

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages apt-build depends on:
ii apt 0.7.21 Advanced front-end for dpkg
ii apt-utils 0.7.21 APT utility programs
ii debconf [debconf-2.0] 1.5.26 Debian configuration management sy
ii devscripts 2.10.48 scripts to make the life of a Debi
ii dpkg-dev 1.14.26 Debian package development tools
ii g++ 4:4.3.3-3 The G...

Read more...

Revision history for this message
Václav Šmilauer (eudoxos) wrote :

Besides the linked debian bug, see also http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=293259 for the cause (source and binary packages have different version numbers).

Changed in apt-build (Ubuntu):
status: New → Confirmed
Changed in apt-build (Debian):
status: Unknown → New
Revision history for this message
Braiam Peguero (braiampe) wrote :

Maybe do an apt-get update and try to run again.

Revision history for this message
DarkJavi (darkjavi) wrote :
Download full text (8.4 KiB)

Same error here!
It fails on some packages, like wine on my case:

apt-build install wine1.2
wine1.2 will not be built because it doesn't have a source package.
Missing source package name for source_by_source().

*however apt-get source gets the package happily

------------------------------------------------------------------------------
apt-get source wine
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
Tome «wine1.2» como paquete fuente en vez de «wine»
Necesito descargar 22,7MB de archivos fuente.
Des:1 http://archive.ubuntu.com/ubuntu/ maverick-updates/universe wine1.2 1.2.1-0ubuntu1 (dsc) [2379B]
Des:2 http://archive.ubuntu.com/ubuntu/ maverick-updates/universe wine1.2 1.2.1-0ubuntu1 (tar) [22,5MB]
7% [2 wine1.2 1658kB/22,5MB 7%]^C

---------------------------------------------------------------------------------------------------------------------------
apt-cache policy wine1.2
wine1.2:
  Instalados: 1.2.1-1ubuntu1
  Candidato: 1.2.1-1ubuntu1
  Tabla de versión:
 *** 1.2.1-1ubuntu1 0
        100 /var/lib/dpkg/status
     1.2.1-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ maverick-updates/universe amd64 Packages
     1.2-0ubuntu9 0
        500 http://archive.ubuntu.com/ubuntu/ maverick/universe amd64 Packages
N: Ignoring file 'apt-build' in directory '/etc/apt/sources.list.d/' as it has no filename extension

----------------------------------------------------------------------------------------------------------------------------------------
# apt-cache show wine1.2
Package: wine1.2
Priority: optional
Section: universe/otherosfs
Installed-Size: 84820
Maintainer: Ubuntu MOTU Developers <email address hidden>
Original-Maintainer: Scott Ritchie <email address hidden>
Architecture: amd64
Version: 1.2-0ubuntu9
Replaces: libwine-alsa, libwine-arts, libwine-capi, libwine-cms, libwine-esd, libwine-gl, libwine-gphoto2, libwine-jack, libwine-ldap, libwine-nas, libwine-print, libwine-sane, libwine-twain, ttf-tahoma-replacement, wine (<< 1.1.36-0ubuntu2), wine-doc, wine-utils, wine1.0, winesetuptk, xwine
Provides: wine
Depends: procps, binfmt-support (>= 1.1.2), ia32-libs (>= 1.6), lib32asound2 (>> 1.0.14), libc6-i386 (>= 2.6-1), lib32nss-mdns (>= 0.10-3), debconf (>= 0.5) | debconf-2.0
Pre-Depends: dpkg (>= 1.14.12ubuntu3)
Recommends: ttf-symbol-replacement, ttf-liberation, winbind, wine1.2-gecko, ttf-mscorefonts-installer, gnome-exe-thumbnailer | kdebase-runtime, cups-bsd, winetricks, wisotool
Suggests: xdg-utils
Conflicts: binfmt-support (<< 1.1.2), libwine, libwine-alsa, libwine-arts, libwine-capi, libwine-cms, libwine-esd, libwine-gl, libwine-gphoto2, libwine-jack, libwine-ldap, libwine-nas, libwine-print, libwine-sane, libwine-twain, ttf-tahoma-replacement, wine (<< 1.1.36-0ubuntu2), wine-doc, wine-utils, wine1.0, winesetuptk, xwine
Filename: pool/universe/w/wine1.2/wine1.2_1.2-0ubuntu9_amd64.deb
Size: 10956368
MD5sum: 01cc9314a22554f85fbcd65c3ce39b5d
SHA1: cac1fea2ba44819bdef8db98e5f15066380c3dc4
SHA256: fea7c197faf8cf5452fd51a7c63d56e1ad1e16910d298956f1e822ecc016ccb9
Description-es: Capa de compatibilidad con Microsoft Windows (emulador binario y...

Read more...

Changed in apt-build (Ubuntu):
status: Confirmed → Fix Committed
status: Fix Committed → Confirmed
Changed in apt-build (Debian):
status: New → Fix Released
Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Fixed in 0.10.42, in Precise

Changed in apt-build (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Maxime D. (maxime-d) wrote :

It seems that this bug is not fixed :

$ sudo apt-build upgrade apport
-----> Upgrading (apport) <-----
apport will not be built because it doesn't have a source package.
Missing source package name for source_by_source().

$ apt-get source apport
Reading package lists... Done
Building dependency tree
Reading state information... Done
NOTICE: 'apport' packaging is maintained in the 'Bzr' version control system at:
https://code.launchpad.net/~ubuntu-core-dev/ubuntu/precise/apport/ubuntu
Please use:
bzr branch https://code.launchpad.net/~ubuntu-core-dev/ubuntu/precise/apport/ubuntu
to retrieve the latest (possibly unreleased) updates to the package.
Need to get 791 kB of source archives.
Get:1 http://fr.archive.ubuntu.com/ubuntu/ precise-updates/main apport 2.0.1-0ubuntu7 (dsc) [1 767 B]
Get:2 http://fr.archive.ubuntu.com/ubuntu/ precise-updates/main apport 2.0.1-0ubuntu7 (tar) [666 kB]
Get:3 http://fr.archive.ubuntu.com/ubuntu/ precise-updates/main apport 2.0.1-0ubuntu7 (diff) [123 kB]
Fetched 791 kB in 0s (13,3 MB/s)
gpgv: Signature made ven. 27 avril 2012 18:06:12 CEST using DSA key ID 2B09367B
gpgv: Can't check signature: public key not found
dpkg-source: warning: failed to verify signature on ./apport_2.0.1-0ubuntu7.dsc
dpkg-source: info: extracting apport in apport-2.0.1
dpkg-source: info: unpacking apport_2.0.1.orig.tar.gz
dpkg-source: info: applying apport_2.0.1-0ubuntu7.diff.gz
dpkg-source: info: upstream files that have been modified:
 apport-2.0.1/apport/hookutils.py
 apport-2.0.1/apport/ui.py
 apport-2.0.1/backends/packaging-apt-dpkg.py
 apport-2.0.1/data/dump_acpi_tables.py
 apport-2.0.1/data/general-hooks/automatix.py
 apport-2.0.1/data/general-hooks/generic.py
 apport-2.0.1/data/general-hooks/ubuntu.py
 apport-2.0.1/data/package-hooks/source_debian-installer.py
 apport-2.0.1/data/package-hooks/source_linux.py
 apport-2.0.1/data/package-hooks/source_ubiquity.py
 apport-2.0.1/debhelper/apport.pm
 apport-2.0.1/debhelper/dh_apport
 apport-2.0.1/etc/apport/blacklist.d/apport
 apport-2.0.1/etc/apport/crashdb.conf
 apport-2.0.1/etc/default/apport
 apport-2.0.1/gtk/apport-gtk
 apport-2.0.1/gtk/apport-gtk-mime.desktop.in
 apport-2.0.1/gtk/apport-gtk.desktop.in
 apport-2.0.1/kde/apport-kde-mime.desktop.in
 apport-2.0.1/kde/apport-kde.desktop.in
 apport-2.0.1/po/pt_BR.po
 apport-2.0.1/po/tr.po
 apport-2.0.1/test/test_hookutils.py
 apport-2.0.1/test/test_ui_gtk.py

Using :
ii apt-build 0.12.42 frontend to apt to build, optimize and install packages

Revision history for this message
Dominique Lasserre (lasall) wrote :

Hi Maxime, please insert `print "$$_{Package} ($$_{Version})";` (without `) after line 404 in /usr/bin/apt-build. Then please show output of `apt-build upgrade apport` again.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.