udevadm trigger is not permitted while udev is unconfigured

Bug #429880 reported by Paul Sladen
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
Fix Released
High
Martin Pitt
Karmic
Fix Released
High
Martin Pitt
hplip (Ubuntu)
Invalid
Undecided
Unassigned
Karmic
Invalid
Undecided
Unassigned
pxljr (Ubuntu)
Invalid
Undecided
Unassigned
Karmic
Invalid
Undecided
Unassigned
splix (Ubuntu)
Invalid
Undecided
Unassigned
Karmic
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: cups

Upgrading 9.04->9.10 Alpha 5:

Setting up cups (1.4.0-5) ...
Installing new version of config file /etc/cups/cupsd.conf ...
Installing new version of config file /etc/cups/cupsd.conf.default ...
Installing new version of config file /etc/init.d/cups ...
Installing new version of config file /etc/apparmor.d/usr.sbin.cupsd ...
apparmor_parser: Unable to replace "/usr/lib/cups/backend/cups-pdf". Profile doesn't conform to protocol
 * Starting Common Unix Printing System: cupsd cupsd: Child exited on signal 6!
cupsctl: Unable to connect to server: Connection refused
udevadm trigger is not permitted while udev is unconfigured.
                                                                         [fail]
lpinfo: Connection refused

...

Setting up hplip (3.9.8-0ubuntu5) ...
Installing new version of config file /etc/hp/hplip.conf ...
Creating/updating hplip user account...
lpinfo: Connection refused

...

Setting up splix (2.0.0-2ubuntu1) ...
lpinfo: Connection refused

...

Setting up pxljr (1.1-0ubuntu6) ...
lpinfo: Connection refused

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

The main problem here is that the karmic apparmor user space tools don't work on the jaunty kernel, thus AA profile fails to load, and subsequently cupsd fails to start (since it's still running under the old profile).

In order for this to work, we need to special-case the upgrade path to disable apparmor on upgrade until the next reboot. Security team, I expect this will happen with other packages which ship apparmor rules. Is there a general recipe for this already?

As for the "udevadm not permitted", I think we should make cups depend on udev.

Changed in cups (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
importance: Undecided → High
status: New → Triaged
Revision history for this message
Martin Pitt (pitti) wrote :

This doesn't affect the other packages, they just say "connection refused" because cupsd crashed soon after startup.

Changed in hplip (Ubuntu):
status: New → Invalid
Changed in pxljr (Ubuntu):
status: New → Invalid
Changed in splix (Ubuntu):
status: New → Invalid
summary: - udevadm trigger is not permitted while udev is unconfigured.
+ fails to start on jaunty->karmic upgrade, missing udev dependency
Changed in cups (Ubuntu Karmic):
milestone: none → ubuntu-9.10-beta
Revision history for this message
Martin Pitt (pitti) wrote :

The AppArmor issue is handled in bug 429872 now.

summary: - fails to start on jaunty->karmic upgrade, missing udev dependency
+ udevadm trigger is not permitted while udev is unconfigured
Revision history for this message
Martin Pitt (pitti) wrote :

Fixed in bzr.

Changed in cups (Ubuntu Karmic):
milestone: ubuntu-9.10-beta → none
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cups - 1.4.1-1

---------------
cups (1.4.1-1) unstable; urgency=low

  [ Till Kamppeter ]
  * debian/cups.postinst: Fixed "lpstat -r" check for the auto update of
    PPDs of existing queues. "lpstat -r" exits always with status 0, we must
    check the actual output.
  * debian/cups.postinst: Updated PPD auto update, so that it works with the
    new CUPS sample driver PPDs which are dynamically generated now.

  [ Martin Pitt ]
  * New upstream bug fix release.
  * Drop patches accepted upstream:
    - ppdc-locale-formatting.dpatch
    - usb-backend-infinite-loop-on-end-of-job.dpatch
    - dns-sd-check-typo.dpatch
  * debian/cups.preinst: Add cleanup of obsolete symlinks in /usr/share/ppd/.
    Drop cleanup from debian/cups.prerm. (Closes: #545298)
  * debian/control: Add udev dependency, since the init script calls udevadm.
    (LP: #429880)
  * debian/cups.postinst, debian/cups.init.d: Call client tools with
    "-h /var/run/cups/cups.sock" instead of "-h localhost", just in case the
    server isn't configured to listen on a TCP port.
  * dnssd-avahi.dpatch: Update to latest Fedora version, which fixes the dnssd
    backend so that it only reports devices once avahi resolution has
    completed. This makes it report Device IDs.

 -- Martin Pitt <email address hidden> Tue, 15 Sep 2009 11:30:07 +0200

Changed in cups (Ubuntu Karmic):
status: Fix Committed → Fix Released
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.