[Bug 854490] Re: update from natty to oneiric hangs on libpam0g upgrade and cups reload

Martin Pitt martin.pitt at ubuntu.com
Tue Sep 20 09:20:40 UTC 2011


I think the error is in libpam0g.postinst. It tries to restart services
while cups (and its libraries) are unconfigured and not running, which
is prone to fail, not only for cups, also for all other services.

It looks like libpam0g.postinst makes no effort to only restart services
which are actually running, it just tries to restart them all. The only
special case is "gdm" where it checks for "idl status | grep -q
stop/waiting". IMHO it should do this for all services.

Steve, can you please have a look at this? Does this make sense?

** Package changed: cups (Ubuntu Oneiric) => pam (Ubuntu Oneiric)

** Changed in: pam (Ubuntu Oneiric)
     Assignee: Canonical Desktop Team (canonical-desktop-team) => Steve Langasek (vorlon)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to pam in Ubuntu.
https://bugs.launchpad.net/bugs/854490

Title:
  update from natty to oneiric hangs on libpam0g upgrade and cups reload

Status in “pam” package in Ubuntu:
  Confirmed
Status in “pam” source package in Oneiric:
  Confirmed

Bug description:
  TEST CASE:
  1. Install Natty and apply updates
  2. run update-manager -d and proceed with the upgrade to 11.10

  Result:
  The upgrade hangs at libpam0g upgrade when cups is reloaded. The last message displayed on console and terminal log is:
  Restarting services possibly affected by the upgrade:
    gdm: reloading...done.
    cups: stopping...starting...

  The following message is displayed and repeated in syslog
  Sep 20 09:19:36 ubuntu-VirtualBox kernel: [ 1893.528204] type=1400 audit(1316503176.331:210): apparmor="STATUS" operation="profile_replace" name="/usr/lib/cups/backend/cups-pdf" pid=18386 comm="apparmor_parser"
  Sep 20 09:19:36 ubuntu-VirtualBox kernel: [ 1893.528494] type=1400 audit(1316503176.331:211): apparmor="STATUS" operation="profile_replace" name="/usr/sbin/cupsd" pid=18386 comm="apparmor_parser"
  Sep 20 09:19:36 ubuntu-VirtualBox init: cups main process (18387) terminated with status 127
  Sep 20 09:19:36 ubuntu-VirtualBox init: cups main process ended, respawning

  The following cups processes are running:
  root     16275  0.0  0.0   2028   512 pts/2    S+   09:11   0:00 /bin/sh -e /etc/init.d/cups start
  root     16279  0.0  0.1   4944  1292 pts/2    S+   09:11   0:00 start cups

  Killing process 16275 allows to continue the upgrade.

  ProblemType: Bug
  DistroRelease: Ubuntu 11.04
  Package: update-manager 1:0.150.3
  ProcVersionSignature: Ubuntu 2.6.38-11.48-generic 2.6.38.8
  Uname: Linux 2.6.38-11-generic i686
  Architecture: i386
  Date: Tue Sep 20 09:13:29 2011
  GConfNonDefault:
   /apps/update-manager/check_new_release_ignore=
   /apps/update-manager/first_run=false
   /apps/update-manager/window_size=(600,600)
  InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
  PackageArchitecture: all
  ProcEnviron:
   LANGUAGE=en_US:en
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: update-manager
  UpgradeStatus: Upgraded to natty on 2011-09-20 (0 days ago)

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




More information about the foundations-bugs mailing list