Package: unattended-upgrades
Version: 2.8
Severity: normal

Dear Maintainer,

I am preparing some Debian 11 desktops (for when it will be the new stable). The setup is very simple: no root account, one partition, tasks desktop/Cinnamon/standard tools/SSH. Unattended-upgrades is configured to install updates on shutdown (see 1): upgrading works properly, but is very disturbing for the users:

When the user chooses to shutdown or reboot the computer from his Cinnamon session, the session does not close until all updates are applied. While waiting:
- icons on the desktop disappear
- the usual menu that allows choosing between suspend/hibernate/reboot/cancel/shutdown won't appear again (see 2)
- it is still possible to start applications

When a user session has been opened, then closed, and the user clicks on shutdown or reboot from LightDM, the behavior is similar: LightDM does not stop. It is even possible to log in again, while unattended-upgrades is applying updates, but when updates are applied the computer shutdowns/reboots as requested originally from LightDM.

I would expect the session to be completely closed, LightDM stopped, and the console or Plymouth displaying a message indicating the ongoing updates. I am almost sure this has already worked for me in a previous Debian version or Ubuntu, with the same setup from me.

Please let me know if you need more information or if you want me to do some tests.

Regards,
Yvan


1. Here are the files I create to configure unattended-upgrades:
$ cat /etc/apt/apt.conf.d/21periodic
  APT::Periodic::Unattended-Upgrade "1";
  APT::Periodic::CleanInterval "1";

$ cat /etc/apt/apt.conf.d/51unattended-upgrades-local
Unattended-Upgrade::Origins-Pattern {
  "origin=Debian,codename=bullseye,label=Debian";
  "origin=Debian,codename=bullseye,label=Debian-Security";
  "origin=Debian,codename=bullseye-updates,label=Debian";
};
Unattended-Upgrade::InstallOnShutdown "true";

$ cat /etc/systemd/logind.conf.d/unattended-upgrades.conf
[Login]
# 30 minutes delay
InhibitDelayMaxSec=1800


2. This matches the following error in ~/.xsession-errors:
Cjs-message: 09:26:35.004: JS LOG: Ignored exception from dbus method: GIO.IOErrorEnum: GDBus:Error:org.gnome.SessionManager.NotInRunning: Shutdown interface is only available during the Running phase


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

Kernel: Linux 5.10.0-6-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_WARN
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages unattended-upgrades depends on:
ii  debconf [debconf-2.0]  1.5.75
ii  lsb-base               11.1.0
ii  lsb-release            11.1.0
ii  python3                3.9.2-2
ii  python3-apt            2.1.7
ii  python3-dbus           1.2.16-5
ii  python3-distro-info    1.0
ii  ucf                    3.0043
ii  xz-utils               5.2.5-2

Versions of packages unattended-upgrades recommends:
ii  anacron             2.3-30
ii  cron [cron-daemon]  3.0pl1-137
ii  systemd-sysv        247.3-3

Versions of packages unattended-upgrades suggests:
pn  bsd-mailx                                  <none>
ii  exim4-daemon-light [mail-transport-agent]  4.94-17
ii  needrestart                                3.5-2
ii  powermgmt-base                             1.36
ii  python3-gi                                 3.38.0-2

-- debconf information excluded

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to