Public bug reported:
Ubuntu 26.04 LTS (up to date as of May 26, but possibly related packages below)
systemd/resolute,now 259.5-0ubuntu3 amd64
polkitd/resolute,now 127-2ubuntu1 amd64
Log in remotely through ssh. Run:
$ systemctl reboot
THis correctly and expectedly fails with a message such as "Operation
inhibited by "xxx" (PID 3485 "gnome-session-s", user xxx), reason is
"user session inhibited"". Or "Operation denied due to active block
inhibitor"
The way around this is to use "-i" or "--check-inhibitors=no". This will
also work:
$ sudo systemctl reboot --check-inhibitors=no
But. If you want to schedule the reboot for later with the "when" option, the
"-i" option is ignored and it fails:
$ sudo systemctl reboot --check-inhibitors=no --when=+1min
[sudo: authenticate] Password:
Failed to schedule shutdown: Operation denied due to active block inhibitor
** Affects: ubuntu
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2154236
Title:
"--when" disables "--check-inhibitors=no" when doing "systemctl
reboot" remotely
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/2154236/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs