[Bug 1968607] Re: screen became locked during release upgrade

Nick Rosbrook 1968607 at bugs.launchpad.net
Mon Apr 11 19:33:49 UTC 2022


I have tested this with both the DistUpgradeViewGtk3 and
DistUpgradeViewText frontends. Using Gtk3, the screen lock prevention
code fails, and no failure is reported in the logs. Using the text
frontend, the screen lock prevention code works as expected.

I believe the issue is that for the Gtk3 and KDE frontends, the dist-
upgrade script is not invoked in a way that preserves the user's
environment variables [1], namely `DBUS_SESSION_BUS_ADDRESS` etc. So,
the DBus call fails and the failure is not reported because
`XDG_SESSION_TYPE` is not set either [2].

[1] https://git.launchpad.net/ubuntu-release-upgrader/tree/do-release-upgrade#n221
[2] https://git.launchpad.net/ubuntu-release-upgrader/tree/DistUpgrade/DistUpgradeController.py#n2079

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

Title:
  screen became locked during release upgrade

Status in ubuntu-release-upgrader package in Ubuntu:
  New

Bug description:
  I was upgrading from Ubuntu 21.10 to Ubuntu 22.04 this morning when my
  lock screen became enabled. My screen is set to blank after 5 minutes.
  Looking at the main release upgrade log file I noticed the following:

  2022-04-11 06:55:10,389 INFO release-upgrader version '22.04.7' started
  ...
  2022-04-11 06:58:10,297 DEBUG inhibit screensaver

  Then in /var/log/auth.log I found:

  Apr 11 07:06:24 godspeed gdm-password]: gkr-pam: unlocked login
  keyring

  I don't recall when I last responded to a dialog from ubuntu-release-
  upgrader but I would guess it was around here:

  2022-04-11 06:56:18,259 DEBUG About to apply the following changes

  So that would only be a couple of minutes of inactivity before the
  screensaver was inhibited, so I don't think it worked. Additionally, I
  never saw a message about the screen lock being disabled.

  ProblemType: Bug
  DistroRelease: Ubuntu 22.04
  Package: ubuntu-release-upgrader-core 1:22.04.8
  ProcVersionSignature: Ubuntu 5.15.0-25.25-generic 5.15.30
  Uname: Linux 5.15.0-25-generic x86_64
  ApportVersion: 2.20.11-0ubuntu80
  Architecture: amd64
  CasperMD5CheckResult: pass
  CrashDB: ubuntu
  CurrentDesktop: ubuntu:GNOME
  Date: Mon Apr 11 11:07:56 2022
  InstallationDate: Installed on 2022-01-07 (94 days ago)
  InstallationMedia: Ubuntu 21.10 "Impish Indri" - Release amd64 (20211012)
  PackageArchitecture: all
  SourcePackage: ubuntu-release-upgrader
  Symptom: ubuntu-release-upgrader
  UpgradeStatus: Upgraded to jammy on 2022-04-11 (0 days ago)
  VarLogDistupgradeTermlog:

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1968607/+subscriptions




More information about the foundations-bugs mailing list