Cups was installed, but won't start

Bug #1005392 reported by jmalter
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Ubuntu 12.04 64bit Desktop

When i try to install cups, the following message appears:

root@xxxxxxx:/var# aptitude upgrade
The following partially installed packages will be configured:
  cups
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
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
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 cups
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
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
Errors were encountered while processing:
 cups

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: cups 1.5.2-9ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-24.39-generic 3.2.16
Uname: Linux 3.2.0-24-generic x86_64
ApportVersion: 2.0.1-0ubuntu7
Architecture: amd64
CupsErrorLog:

Date: Mon May 28 06:46:06 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
Lpstat: Error: command ['lpstat', '-v'] failed with exit code 1: lpstat: Connection refused
MachineType: LENOVO 44036KG
Papersize: a4
PpdFiles: Epson-Stylus-Office-BX300F: Epson Stylus Office BX300F - CUPS+Gutenprint v5.2.8-pre1
ProcEnviron:
 SHELL=/bin/bash
 TERM=xterm
 LANG=de_DE.UTF-8
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.2.0-24-generic root=UUID=ad5e2251-50d5-483e-8638-c9791d2b487d ro quiet splash vt.handoff=7
SourcePackage: cups
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 12/08/2011
dmi.bios.vendor: LENOVO
dmi.bios.version: 81ET60WW (1.36 )
dmi.board.name: 44036KG
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvr81ET60WW(1.36):bd12/08/2011:svnLENOVO:pn44036KG:pvrThinkPadL412:rvnLENOVO:rn44036KG:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 44036KG
dmi.product.version: ThinkPad L412
dmi.sys.vendor: LENOVO

Revision history for this message
jmalter (joerg4711) wrote :
Revision history for this message
jmalter (joerg4711) wrote :

Workaround:

Deinstall apparmor and cups is running

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

Pitti, seems to be an AppArmor problem. Can you have a look?

jmalter, can you reinstall AppArmor and then run the command

aa-complain cupsd

Now CUPS should also work, as AppArmor is not blocking on accesses which are not permitted. Some seconds after CUPS has started, attach your /var/log/syslog file to this bug. Thanks.

Changed in cups (Ubuntu):
status: New → Incomplete
Revision history for this message
jmalter (joerg4711) wrote :

Hi Till,

thanks for the fast answer.

1. I've installed apparmor

2. Sart cups

Now the strange one, cups will start.

Anywhere, i have entered aa-complain cups and started cups.
Here is the part of the syslog.

May 28 12:47:25 joerg kernel: [ 472.079423] type=1400 audit(1338202045.890:38): apparmor="STATUS" operation="profile_replace" name="/usr/lib/cups/backend/cups-pdf" pid=9755 comm="apparmor_parser"
May 28 12:47:25 joerg kernel: [ 472.079598] type=1400 audit(1338202045.890:39): apparmor="STATUS" operation="profile_replace" name="/usr/sbin/cupsd" pid=9755 comm="apparmor_parser"
May 28 12:47:28 joerg AptDaemon: INFO: Quitting due to inactivity
May 28 12:47:28 joerg AptDaemon: INFO: Quitting was requested
May 28 12:47:40 joerg kernel: [ 486.792324] type=1400 audit(1338202060.635:40): apparmor="STATUS" operation="profile_replace" name="/usr/lib/cups/backend/cups-pdf" pid=9773 comm="apparmor_parser"
May 28 12:47:40 joerg kernel: [ 486.792557] type=1400 audit(1338202060.635:41): apparmor="STATUS" operation="profile_replace" name="/usr/sbin/cupsd" pid=9773 comm="apparmor_parser"
May 28 12:47:41 joerg udev-configure-printer: add /module/lp

Thank you for your advise.

Regards

Joerg

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

Till, the CurrentDmesg.txt attachment shows no apparmor violations, neither does Joerg's followup. So something else was wrong.

Joerg, if you uninstall apparmor again, do you get the startup failure again?

Revision history for this message
jmalter (joerg4711) wrote :

I have a idea.

I had made a full backup on friday. With this backup the problem still persists.
I can restore that on wednesday, because today i need my laptop today for the business issues.
When i restore it tommorow, i will do all steps from #3 and post the logs here.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for cups (Ubuntu) because there has been no activity for 60 days.]

Changed in cups (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Jan Groenewald (jan-aims) wrote :

Confirmed on precise.
Installing apparmor-utils, running aa-complain cupsd, then cups starts OK.

/var/log/syslog now has several messages like this one:

Dec 12 13:58:10 rondloper kernel: [ 885.007738] type=1400
audit(1386849490.315:4932): apparmor="ALLOWED" operation="open"
parent=9636 profile="/usr/sbin/cupsd//null-37"
name="/lib/i386-linux-gnu/libpthread-2.15.so" pid=9670
comm="cups-driverd" requested_mask="r" denied_mask="r" fsuid=7 ouid=0

That "profile" filename is obviously spurious since /usr/sbin/cupsd is
a program.

Changed in cups (Ubuntu):
status: Expired → Confirmed
Revision history for this message
Jan Groenewald (jan-aims) wrote :

That was on
Ubuntu precise 32bit
1.5.3-0ubuntu8

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.