package cups-pdf 2.4.6-3ubuntu5 failed to install/upgrade: le sous-processus post-installation script a retourné une erreur de sortie d'état 1

Bug #134453 reported by jibux
36
Affects Status Importance Assigned to Milestone
cups-pdf (Ubuntu)
Fix Released
Medium
Martin Pitt

Bug Description

Binary package hint: cups-pdf

After aptitude update

ProblemType: Package
Architecture: i386
Date: Fri Aug 24 09:24:35 2007
DistroRelease: Ubuntu 7.10
ErrorMessage: le sous-processus post-installation script a retourné une erreur de sortie d'état 1
Package: cups-pdf 2.4.6-3ubuntu5
PackageArchitecture: i386
SourcePackage: cups-pdf
Title: package cups-pdf 2.4.6-3ubuntu5 failed to install/upgrade: le sous-processus post-installation script a retourné une erreur de sortie d'état 1
Uname: Linux jeb-desktop 2.6.22-9-generic #1 SMP Fri Aug 3 00:50:37 GMT 2007 i686 GNU/Linux

Related branches

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

In the log the setup of cups-pdf looks OK. Can it be that there is a bug in Apport?

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

I have done an update on my Ubuntu Gutsy machine now and cups-pdf updated without problem.

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

I confirm both the failure on a previous release and the success on the current one.

Revision history for this message
Ricochet (giuse-obino) wrote :

After the upgrading to Gutsy i 'have the same problem with cups-pdf:
E: cups-pdf: il sottoprocesso post-installation script ha restituito un codice di errore 127
everytime i upgrade gutsy packages the shell tell to me:
 * Reloading Common Unix Printing System: cupsd [ OK ]
/var/lib/dpkg/info/cups-pdf.postinst: 57: lpadmin: not found
dpkg: errore processando cups-pdf (--configure):
 il sottoprocesso post-installation script ha restituito un codice di errore 127
Sono occorsi degli errori processando:
 cups-pdf
E: Sub-process /usr/bin/dpkg returned an error code (1)
but If i use postscript-color to print a pdf file in postscript file everything goes OK !!
thanks

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

Rinochet, this "lpadmin not found" is strange. Can you please give me the output of those commands;

dpkg -s cupsys-client
ls -l /usr/sbin/lpadmin
sudo sh -ex /var/lib/dpkg/info/cups-pdf.postinst configure

Thank you!

Changed in cups-pdf:
status: New → Incomplete
Revision history for this message
Ricochet (giuse-obino) wrote :

OK and thank for your speed

giuse@giuse-desktop:~$ dpkg -s cupsys-client
Package: cupsys-client
Status: purge ok not-installed
Priority: optional
Section: net

giuse@giuse-desktop:~$ ls -l /usr/sbin/lpadmin
ls: /usr/sbin/lpadmin: Nessun file o directory

giuse@giuse-desktop:~$ sudo sh -ex /var/lib/dpkg/info/cups-pdf.postinst configure
[sudo] password for giuse:
+ set -e
+ [ -f /var/log/cups/cups-pdf_log ]
+ chown root:lpadmin /var/log/cups/cups-pdf_log
+ chmod 0600 /var/log/cups/cups-pdf_log
+ chown nobody:nogroup /var/spool/cups-pdf/ANONYMOUS
+ chmod 1777 /var/spool/cups-pdf/ANONYMOUS
+ chmod 0700 /usr/lib/cups/backend/cups-pdf
+ [ -f /etc/init.d/cupsys ]
+ invoke-rc.d cupsys force-reload
 * Reloading Common Unix Printing System: cupsd [ OK ]
+ lpstat -r
+
+ LC_ALL=C lpstat -v
+ grep cups-pdf:/
+ [ -z ]
+ queue=PDF
+ number=0
+ LC_ALL=C lpstat -v
+ cut -d : -f 1
+ cut -d -f 3
+ grep -q ^PDF$
+ LC_ALL=C paperconf
+ size=a4
+ lpadmin -h localhost -p PDF -E -v cups-pdf:/ -m lsb/usr/cups-pdf/PostscriptColor.ppd -o printer-is-shared=no -o PageSize=a4
/var/lib/dpkg/info/cups-pdf.postinst: 1: lpadmin: not found

Bye

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

Ah, that would be it. cupsys does not Depend: on cupsys-client, only Recommends: it. Thus cups-pdf needs a direct dependency. Thank you for your info!

Changed in cups-pdf:
assignee: nobody → pitti
importance: Undecided → Medium
status: Incomplete → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

cups-pdf (2.4.6-3ubuntu7) gutsy; urgency=low

  * debian/control: Add explicit cupsys-client dependency, since the postinst
    needs 'lpadmin' and cupsys itself only recommends -client.
    (LP: #134453)

 -- Martin Pitt <email address hidden> Tue, 02 Oct 2007 09:14:03 +0200

Changed in cups-pdf:
status: In Progress → Fix Released
Revision history for this message
Ricochet (giuse-obino) wrote :

With the upgrade of this morning the problem has been solved !!!!
Thanks ;)
Good work with Ubuntu...

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :
Download full text (4.1 KiB)

cups-pdf (2.4.6-3ubuntu10) gutsy; urgency=low

  * debian/postinst: Before creating a CUPS queue wait 3 seconds to be sure
    that the CUPS daemon is listening (LP: #152293).

cups-pdf (2.4.6-3ubuntu9) gutsy; urgency=low

  * debian/patches/50_default_conf.patch: Withdrawn the chnage of the PDF
    destination to ~/Desktop, returned to ~/PDF, also do not let cups-pdf
    label documents with job numbers by default (see LP bugs 134682 and
    134671).
  * debian/control: Removed the versioned require on cupsys, as we have
    withdrawn the change of the PDF destination.

cups-pdf (2.4.6-3ubuntu8) gutsy; urgency=low

  * debian/patches/50_default_conf.patch: Use ~/Desktop as default destination
    for the PDF files so that users find them more easily (LP: #134682,
    LP: #134671)
  * debian/prerm, debian/postinst: Make any failure of CUPS command line tools
    non-fatal, to not affect the setup of cups-pdf if CUPS crashes immediately
    after being restarted by the cups-pdf setup (LP: #136449, LP: #147974).
  * debian/control: Require cupsys 1.3.2-1ubuntu2 or newer, to have
    AppArmor restrictions allowing to write into ~/Desktop.

cups-pdf (2.4.6-3ubuntu7) gutsy; urgency=low

  * debian/control: Add explicit cupsys-client dependency, since the postinst
    needs 'lpadmin' and cupsys itself only recommends -client.
    (LP: #134453)

cups-pdf (2.4.6-3ubuntu6) gutsy; urgency=low

  * debian/postinst: Fix invocation of "lpstat -r" (remove backticks). This
    makes the automatic setup of the PDF queue actually work again.

cups-pdf (2.4.6-3ubuntu5) gutsy; urgency=low

  * debian/postinst: force PDF queues on localhost only; systems configured
    for remote CUPS servers are not expecting it.

cups-pdf (2.4.6-3ubuntu4) gutsy; urgency=low

  * debian/postinst, debian/prerm: Check, create, or remove PDF queues only
    if the CUPS daemon is running, otherwise go on silently (LP: #133743).

cups-pdf (2.4.6-3ubuntu3) gutsy; urgency=low

  * debian/postinst: Only set up the PDF queue, do not make it the default.
    Otherwise the PDF queue would stay the default when the first real printer
    is detected after installation and as the installation of the packages
    happens before the detection of the printers all systems will have the PDF
    queue as default.

cups-pdf (2.4.6-3ubuntu2) gutsy; urgency=low

  [ Till Kamppeter ]
  * debian/control: Updated dependencies: ghostscript, paperconf.
  * debian/postinst, debian/prerm: Create a PDF print queue when installing
    and take it down when uninstalling (LF: #82674)
  * debian/patches/10_auto_assign_ppd.patch: Make the PPD automatically
    assigned to the PDF printer by CUPS/printer setup tools
  * debian/rules: Enabled the package for applying patches by adding
    "include /usr/share/cdbs/1/rules/simple-patchsys.mk"

  [ Martin Pitt ]
  * Now that we use simple-patchsys.mk, make a proper patch
    debian/patches/01_mkdir_as_user.patch from the src/cups-pdf.c change in
    the last upload. Also move the default configuration changes into a patch
    50_default_conf.patch, so that the diff.gz is now free of upstream diffs.
  * debian/postinst: If paperconf fails, fall back to paper size "a4"...

Read more...

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.