package cups 1.4.4-6ubuntu2.1 failed to install/upgrade: subprocess installed post-installation script killed by signal (Terminated)

Bug #664768 reported by Daniel Amendoeira
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
New
Undecided
Martin Pitt

Bug Description

Binary package hint: cups

upgrading to current cups (@2010.10.21), hung on 'start cups'.

ProblemType: Package
DistroRelease: Ubuntu 10.10
Package: cups 1.4.4-6ubuntu2.1
ProcVersionSignature: Ubuntu 2.6.35-22.34-generic-pae 2.6.35.4
Uname: Linux 2.6.35-22-generic-pae i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Thu Oct 21 22:07:50 2010
ErrorMessage: subprocess installed post-installation script killed by signal (Terminated)
Lpstat: Error: command ['lpstat', '-v'] failed with exit code 1: lpstat: Connection refused
MachineType: ASUSTEK COMPUTER INC P5W DH Deluxe
Papersize: letter
PpdFiles:
 CLP-300: Samsung CLP-300 Foomatic/foo2qpdl (recommended)
 HP6310: HP Officejet 6300 Series, hpcups 3.10.2
 HP6310fax: HP Fax hpijs
ProcCmdLine: BOOT_IMAGE=/vmlinuz-2.6.35-22-generic-pae root=UUID=a8f94331-2e82-4395-a982-ea14122ba0f5 ro quiet splash
SourcePackage: cups
Title: package cups 1.4.4-6ubuntu2.1 failed to install/upgrade: subprocess installed post-installation script killed by signal (Terminated)
dmi.bios.date: 03/20/2008
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 2704
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: P5W DH Deluxe
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev 1.xx
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr2704:bd03/20/2008:svnASUSTEKCOMPUTERINC:pnP5WDHDeluxe:pvrSystemVersion:rvnASUSTeKComputerINC.:rnP5WDHDeluxe:rvrRev1.xx:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: P5W DH Deluxe
dmi.product.version: System Version
dmi.sys.vendor: ASUSTEK COMPUTER INC

Revision history for this message
Daniel Amendoeira (daniel.amendoeira) wrote :
Revision history for this message
wanderinrain (roc-tang) wrote :

I also met the problem when I upgraded my Ubuntu10.10 (64bit)

Revision history for this message
ceylon (ceylon) wrote :

The problem seems to be the execution of 'start cups'... running '/etc/init.d/cups restart' while the post-installation script is hanging at least *seems* to resolve the issue here.

Revision history for this message
Daniel Amendoeira (daniel.amendoeira) wrote : Re: [Bug 664768] Re: package cups 1.4.4-6ubuntu2.1 failed to install/upgrade: subprocess installed post-installation script killed by signal (Terminated)

The first time I tried the update with 'apt-get upgrade', it hung on 'cups
stop'. I killed the process, and apt continued, complaining it did not
install everything.

I then stopped (had to kill -9) cups manually, and tried the upgrade again.
This time it hung on 'cups start'. I again killed the hung process, and apt
finished the install.

At the moment, I'm unable to start or stop cupsd, since it hangs on 'start
cups'. Since the init.d script now instructs to use start and stop
(initclt)... I'm stuck

I've just re-installed all cups related pkgs, with the same result. apt-get
hungs on 'start cups'. If I kill 'start cups', apt-get continues and reaches
the re-install job batch with success.

How can I debug why is this hanging? initctl and cupsd have no debug
options...

Daniel Amendoeira
____
Would you give up your hands to fly? Birds did...
daniel.amendoeira (at) gmail.com

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

Issue of the upstartification of CUPS. pitti, can you have a look?

Changed in cups (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
Revision history for this message
Daniel Amendoeira (daniel.amendoeira) wrote :

I include an strace of 'cups start', where it hangs on

poll([{fd=3, events=POLLIN}], 1, -564398304

After this, I have a process:

root 3587 1 0 22:49 ? 00:00:00 /bin/sh -e /proc/self/fd/12

which is spawning a 'sleep 0.5'.... could not make out where this one leads to.

root 4544 3587 0 22:54 ? 00:00:00 sleep 0.5
root 4547 3587 0 22:54 ? 00:00:00 sleep 0.5
root 4551 3587 0 22:54 ? 00:00:00 sleep 0.5
root 4554 3587 0 22:54 ? 00:00:00 sleep 0.5
root 4558 3587 0 22:54 ? 00:00:00 sleep 0.5
root 4561 3587 0 22:54 ? 00:00:00 sleep 0.5

If I kill the 'sh /proc...' process, the strace log unblocks, and gives out the contents of the second file (strace-start-cups-2.txt).

In the end, cupsd ir running fine, despite this nasty kill process.

Revision history for this message
Daniel Amendoeira (daniel.amendoeira) wrote :

2nd file

Revision history for this message
ceylon (ceylon) wrote :

I've had the same problem when updating to cups_1.4.4-6ubuntu2.2_amd64.deb. I suspect it's due to this bug: https://bugs.launchpad.net/ubuntu/+source/cups/+bug/672438

Revision history for this message
Daniel Amendoeira (daniel.amendoeira) wrote :

I tried the proposed workaround in bug 672438, as pointed by ceylon, and worked like a charm.

Let's wait and see what happens on the next update.

Daniel

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.