Package: libpam0g
Version: 1.3.1-2
Severity: critical
Justification: causes serious data loss

Dear Maintainer,

my X session was just killed during update, I could capture the
output because aptitude was running inside tmux:

 Unpacking libpam0g:amd64 (1.3.1-2) over (1.1.8-4) ...
 Setting up libpam0g:amd64 (1.3.1-2) ...
 Checking for services that may need to be restarted...Checking init scripts...
 WARNING: init script for samba not found.
 
 Restarting services possibly affected by the upgrade:
   xdm: stopping...starting...done.
   exim4: stopping...starting...done.
   cups: stopping...starting...done.
   cron: stopping...starting...done.
   atd: stopping...starting...done.
 
 Services restarted successfully.

I think the cause is a bug in postinst script which checks for X:

            if ! who | awk '{print $2}'|grep -q ':[0-9]'; then
                check="$check wdm xdm"
            fi

However, the output format of "who" (GNU coreutils 8.30) is:

  js       console      Feb 13 15:54 (:0)
  js       pts/1        Jan 11 16:00 (tmux(2459).%0)
  js       pts/2        Jan 11 16:00 (tmux(2459).%1)
  js       pts/3        Jan 11 16:00 (tmux(2459).%2)
  js       pts/4        Jan 11 16:00 (tmux(2459).%3)
  js       pts/5        Feb 13 15:56 (:0)
  ...

Incidentally debconf also failed to display any UI before
restarting services, not sure why.


Regards,
Johannes


-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.13 (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=C, LC_CTYPE=de_DE.utf-8 (charmap=UTF-8), LANGUAGE=C (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages libpam0g depends on:
ii  debconf [debconf-2.0]  1.5.70
ii  libaudit1              1:2.8.4-2
ii  libc6                  2.28-7

libpam0g recommends no packages.

Versions of packages libpam0g suggests:
pn  libpam-doc  <none>

-- debconf information:
  libpam0g/restart-services:
  libpam0g/restart-failed:
  libpam0g/xdm-needs-restart:
* libraries/restart-without-asking: true

Reply via email to