[Bug 2133012] Re: The "Restart Now" button in Software Updater does not restart the system

Nathan Teodosio 2133012 at bugs.launchpad.net
Fri Dec 19 15:15:39 UTC 2025


Sleep inhibition was introduced as a response to LP:40697.

Then the inhibition call was switched to use Logind in LP:1566141, in
commit edc8556fd9de9c6e76158bc1b7b9[1], thereat introducing shutdown
inhibition as well. This new behavior was not supported by the bug
report nor is it mentioned in the commit or in-line comments, which
indeed continue to say

+    Send a dbus signal to logind to not suspend
+    the system, it will be released when the return
+    value drops out of scope

So I think we have a clear case to drop shutdown inhibition. Indeed, Apt
already does that during an installation operation:

  % gdbus call -y -o /org/freedesktop/login1 -d org.freedesktop.login1 -m org.freedesktop.login1.Manager.ListInhibitors
  ([... ('shutdown', 'APT', 'APT is installing or removing packages', 'block', 0, 170914)],)

So Update-Manager's shutdown inhibition is redundant.

I additionally argue that the sleep operation too should not be handled
by Update-Manager, which is merely a front-end. I wouldn't say it needs
to be inhibited at all, but in any case this argument should be made
with Apt if desired, so I'll submit a merge request to entirely remove
the shutdown and sleep inhibition from Update-Manager.

[1]https://git.launchpad.net/update-
manager/commit/?id=edc8556fd9de9c6e76158bc1b7b9

** Changed in: update-manager (Ubuntu)
       Status: Triaged => In Progress

** Merge proposal linked:
   https://code.launchpad.net/~nteodosio/update-manager/+git/update-manager/+merge/497846

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

Title:
  The "Restart Now" button in Software Updater does not restart the
  system

Status in update-manager package in Ubuntu:
  In Progress

Bug description:
  Every time the Software Updater application (from the update-manager
  package) has finished updating "core" packages like the kernel, it
  says that the computer needs to restart to finish installing updates.
  In that window, clicking on the "Restart Now" button brings up the
  restart pop-up ("The system will restart automatically in 60 seconds")
  but clicking on "Restart" on that pop-up does not do anything and the
  Software Updater application closes as if it just crashed. The system
  does not restart.

  The restart pop-up looks the same as the one brought up by the "Power
  Off" menu in GNOME when clicking on the "Restart..." option.

  When launching Software Updater with the Terminal (/usr/bin/update-
  manager --debug) it prints messages up until the message that says
  that the computer needs to restart shows up, but nothing from that
  moment on.

  Ubuntu release: 25.10
  update-manager installed version: 1:25.10.1 (same as candidate)

  ProblemType: Bug
  DistroRelease: Ubuntu 25.10
  Package: update-manager 1:25.10.1
  ProcVersionSignature: Ubuntu 6.17.0-7.7-generic 6.17.2
  Uname: Linux 6.17.0-7-generic x86_64
  ApportVersion: 2.33.1-0ubuntu3
  Aptdaemon:
   
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: ubuntu:GNOME
  Date: Wed Nov 26 15:45:43 2025
  InstallationDate: Installed on 2025-06-12 (167 days ago)
  InstallationMedia: Ubuntu 25.04 "Plucky Puffin" - Release amd64 (20250415.3)
  PackageArchitecture: all
  SourcePackage: update-manager
  UpgradeStatus: Upgraded to questing on 2025-10-29 (28 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/2133012/+subscriptions




More information about the foundations-bugs mailing list