gutenprint: postinst: lpstat: no such file or directory

Bug #647369 reported by Martin-Éric Racine
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
Fix Released
High
Martin Pitt
Maverick
Fix Released
High
Martin Pitt
gutenprint (Ubuntu)
Fix Released
High
Till Kamppeter
Maverick
Fix Released
High
Till Kamppeter

Bug Description

Setting up libgutenprint2 (5.2.6-0ubuntu7) ...
Setting up cups-driver-gutenprint (5.2.6-0ubuntu7) ...
Did not update any PPD files
lpstat: No such file or directory

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: cups-driver-gutenprint 5.2.6-0ubuntu7
ProcVersionSignature: Ubuntu 2.6.35-22.33-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic i686
Architecture: i386
CupsErrorLog: E [25/Sep/2010:11:45:23 +0300] [cups-driverd] Bad driver information file "/usr/share/cups/drv/sample.drv"!
Date: Sat Sep 25 11:47:36 2010
Lpstat: device for PDF: cups-pdf:/
MachineType: Dell Inc. Latitude D430
Papersize: a4
PccardctlIdent:
 Socket 0:
   no product info available
PccardctlStatus:
 Socket 0:
   no card
PpdFiles: PDF: Generic CUPS-PDF Printer
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.35-22-generic root=UUID=cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a ro rootfstype=ext4 quiet splash
ProcEnviron:
 LANGUAGE=fi_FI:fi:en_US:en
 PATH=(custom, user)
 LANG=fi_FI.UTF-8
 SHELL=/bin/bash
SourcePackage: gutenprint
dmi.bios.date: 06/20/2007
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A01
dmi.board.name: 000007
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrA01:bd06/20/2007:svnDellInc.:pnLatitudeD430:pvr:rvnDellInc.:rn000007:rvr:cvnDellInc.:ct8:cvr:
dmi.product.name: Latitude D430
dmi.sys.vendor: Dell Inc.

Revision history for this message
Martin-Éric Racine (q-funk) wrote :
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Can you post the output of the following commands:

dpkg -l | grep cups
ls -l /var/run/cups/cups.sock
which lpstat

Changed in gutenprint (Ubuntu):
status: New → Incomplete
Revision history for this message
Martin-Éric Racine (q-funk) wrote :

$ dpkg -l | grep cups
ii bluez-cups 4.69-0ubuntu2 Bluetooth printer driver for CUPS
ii cups 1.4.4-6 Common UNIX Printing System(tm) - server
ii cups-bsd 1.4.4-6 Common UNIX Printing System(tm) - BSD commands
ii cups-client 1.4.4-6 Common UNIX Printing System(tm) - client programs (SysV)
ii cups-common 1.4.4-6 Common UNIX Printing System(tm) - common files
ii cups-driver-gutenprint 5.2.6-0ubuntu7 printer drivers for CUPS
ii cups-pdf 2.5.0-16 PDF printer for CUPS
ii ghostscript-cups 8.71.dfsg.2-0ubuntu7 The GPL Ghostscript PostScript/PDF interpreter - CUPS filters
ii libcups2 1.4.4-6 Common UNIX Printing System(tm) - Core library
ii libcupscgi1 1.4.4-6 Common UNIX Printing System(tm) - CGI library
ii libcupsdriver1 1.4.4-6 Common UNIX Printing System(tm) - Driver library
ii libcupsimage2 1.4.4-6 Common UNIX Printing System(tm) - Raster image library
ii libcupsmime1 1.4.4-6 Common UNIX Printing System(tm) - MIME library
ii libcupsppdc1 1.4.4-6 Common UNIX Printing System(tm) - PPD manipulation library
ii python-cups 1.9.51-0ubuntu2 Python bindings for CUPS
ii python-cupshelpers 1.2.3+20100723-0ubuntu7 Python modules for printer configuration with CUPS
$ ls -l /var/run/cups/cups.sock
srwxrwxrwx 1 root root 0 2010-09-27 01:34 /var/run/cups/cups.sock
$ which lpstat
/usr/bin/lpstat

Revision history for this message
Martin Pitt (pitti) wrote :

Cups' upstart script needs to wait until the daemon is ready.

affects: gutenprint (Ubuntu) → cups (Ubuntu)
Changed in cups (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
importance: Undecided → High
status: Incomplete → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

Fixed in r906.

Changed in cups (Ubuntu):
status: In Progress → Fix Committed
tags: added: regression-potential
Revision history for this message
Martin Pitt (pitti) wrote :

Targetting for Maverick since this is a regression from lucid

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Re-adding gutenprint task, as the fix in the upstart script does not cover the problem reported here (but another important problem). The problem reported here could even occur before upstartification of CUPS. The problem reported here can be solved by a simple wait loop in the post-install script.

Changed in gutenprint (Ubuntu Maverick):
status: New → Triaged
status: Triaged → In Progress
importance: Undecided → High
assignee: nobody → Till Kamppeter (till-kamppeter)
Changed in gutenprint (Ubuntu Maverick):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cups - 1.4.4-6ubuntu1

---------------
cups (1.4.4-6ubuntu1) maverick; urgency=low

  * ubuntu-upstart.dpatch: Wait until daemon is ready, to avoid race
    conditions with init scripts which expect cups tools to work right after
    restarting it. This fixes a regression from the upstartification.
    Patch cherrypicked from packaging trunk. (LP: #647369)
  * debian/control: Update Vcs-Bzr: for Maverick branch.
 -- Martin Pitt <email address hidden> Mon, 27 Sep 2010 17:49:29 +0200

Changed in cups (Ubuntu Maverick):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gutenprint - 5.2.6-0ubuntu8

---------------
gutenprint (5.2.6-0ubuntu8) maverick; urgency=low

  * Let steps which come after the reload of CUPS in the post-install script
    of the cups-driver-gutenprint binary package wait for the CUPS daemon
    getting ready (LP: #647369).
 -- Till Kamppeter <email address hidden> Mon, 27 Sep 2010 18:19:03 +0200

Changed in gutenprint (Ubuntu Maverick):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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