BLOCK_SUSPEND is a capability in newer kernels. 'deny capability
block_suspend,' is found in the 12.10 CUPS profile, which is fine since
the 12.10 kernel has it and the apparmor userspace for 12.10 was
compiled against the 12.10 kernel headers. However, on 12.04 the
apparmor userspace was compiled with older headers and so it doesn't
understand this rule.

tlu, what version of cups are you using? Can you give the output of:
$ apt-cache policy cups

** Changed in: cups (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to cups in Ubuntu.
https://bugs.launchpad.net/bugs/1052098

Title:
  AppArmor parser error for /etc/apparmor.d/usr.sbin.cupsd

Status in “cups” package in Ubuntu:
  Incomplete

Bug description:
  My HP printer suddenly didn't work anymore, and /var/log/syslog
  reported for udev-configure-printer:

  "failed to connect to CUPS server; giving up"

  I decided to reinstall cups and hplip and got the following error
  messages:

  "AppArmor parser error for /etc/apparmor.d/usr.sbin.cupsd in
  /etc/apparmor.d/usr.sbin.cupsd at line 18: Invalid capability
  block_suspend."

  ... and:

  "start: Job failed to start
  invoke-rc.d: initscript cups, action "start" failed."

  ... resulting in errors related to dpkg (dependencies problems).

  After commenting out the line

  capability block_suspend,

  in /etc/apparmor.d/usr.sbin.cupsd, all is well: Reinstalling cups and
  hplip was successful and my printer works again.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/1052098/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to