package cups (not installed) failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #979877 reported by mfauzirahman
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

Setting up cups (1.5.2-9ubuntu1) ...
start: Job failed to start
invoke-rc.d: initscript cups, action "start" failed.
dpkg: error processing cups (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of printer-driver-gutenprint:
 printer-driver-gutenprint depends on cups (>= 1.3.0); however:
  Package cups is not configured yet.
dpkg: error processing printer-driver-gutenprint (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 cups
 printer-driver-gutenprint
E: Sub-process /usr/bin/dpkg returned an error code (1)
mfauzirahman@XPS-M1330:~$

ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: cups (not installed)
Uname: Linux 3.4.0-030400rc2-generic-pae i686
ApportVersion: 2.0.1-0ubuntu2
AptOrdering:
 cups: Install
 printer-driver-gutenprint: Install
 cups: Configure
 printer-driver-gutenprint: Configure
Architecture: i386
Date: Thu Apr 12 17:54:15 2012
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta i386 (20120405)
Lpstat: Error: command ['lpstat', '-v'] failed with exit code 1: lpstat: Connection refused
MachineType: Dell Inc. XPS M1330
Papersize: letter
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.4.0-030400rc2-generic-pae root=UUID=218b5358-9b84-4f38-8c7b-bf820e9e3114 ro quiet splash vt.handoff=7
SourcePackage: cups
Title: package cups (not installed) failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 12/26/2008
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A15
dmi.board.name: 0N6705
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrA15:bd12/26/2008:svnDellInc.:pnXPSM1330:pvr:rvnDellInc.:rn0N6705:rvr:cvnDellInc.:ct8:cvr:
dmi.product.name: XPS M1330
dmi.sys.vendor: Dell Inc.
modified.conffile..etc.init.cups.conf: [modified]
mtime.conffile..etc.init.cups.conf: 2012-04-10T13:24:42

Revision history for this message
mfauzirahman (mfauzirahman) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Seems that CUPS does not start after the update:

----------
Setting up cups (1.5.2-9ubuntu1) ...
Installing new version of config file /etc/init/cups.conf ...
start: Job failed to start
invoke-rc.d: initscript cups, action "start" failed.
dpkg: error processing cups (--configure):
 subprocess installed post-installation script returned error exit status 1
----------

Please run the following commands in a terminal window:

  wget http://people.canonical.com/~pitti/tmp/cups.upstart.debug
  sudo cp /etc/init/cups.conf{,.orig}
  sudo cp cups.upstart.debug /etc/init/cups.conf
  sudo stop cups
  sudo start cups

This should fail again. Please attach /tmp/log here.

After that, please restore the original script again with

  sudo mv /etc/init/cups.conf{.orig,}

Thanks!

Most probably the same problem as bug 968956.

Changed in cups (Ubuntu):
status: New → Incomplete
Revision history for this message
dino99 (9d9) wrote :

Got this error on Precise a few days ago, and finally found (some googling) that appmenu-indicator was needed. After installing it, the error was gone. Got this error when upgrading libcupsfilters and like.

Revision history for this message
Sebastien Bacher (seb128) wrote :

@dino99: that doesn't really make sense, where did you read that? does that pulled it some other depends?

Revision history for this message
dino99 (9d9) wrote :

@Sebastien

Was that report, similar to that one: https://bugs.launchpad.net/ubuntu/+source/cups/+bug/975754 and many others reported with the same trouble. Cant says that make sense, but if im not mistaken i've installed indicator-appmenu (but can find back my source link right now) to resolve this issue.
S i suppose that some cups (or some related ) dependency/sub-dependency still refer to that package (even if synaptic does not show cups's dependant)

Revision history for this message
mfauzirahman (mfauzirahman) wrote :

I use 32 bit...
https://bugs.launchpad.net/bugs/968956 is for 64 bit
Done run below step :
  wget http://people.canonical.com/~pitti/tmp/cups.upstart.debug
  sudo cp /etc/init/cups.conf{,.orig}
  sudo cp cups.upstart.debug /etc/init/cups.conf
  sudo stop cups
  sudo start cups

mfauzirahman@XPS-M1330:~$ wget http://people.canonical.com/~pitti/tmp/cups.upstart.debug
--2012-04-13 16:27:14-- http://people.canonical.com/~pitti/tmp/cups.upstart.debug
Resolving people.canonical.com (people.canonical.com)... 91.189.89.62
Connecting to people.canonical.com (people.canonical.com)|91.189.89.62|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1894 (1.8K) [text/plain]
Saving to: `cups.upstart.debug.2'

100%[==============================================================================>] 1,894 --.-K/s in 0.009s

2012-04-13 16:27:21 (207 KB/s) - `cups.upstart.debug.2' saved [1894/1894]

mfauzirahman@XPS-M1330:~$ sudo cp /etc/init/cups.conf{,.orig}
[sudo] password for mfauzirahman:
cp: cannot stat `/etc/init/cups.conf': No such file or directory
mfauzirahman@XPS-M1330:~$

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.