This is what I get in the terminal. I can only restart the computer using the normal way offered by the operating system. Does anyone know a solution
What exactly does that mean?
For a desktop user it may mean the icon used to restart the PC.
For a desktop terminal user it may mean using sudo reboot or sudo shutdown -r
For someone logged in on a tty as well as with the desktop it may mean something else.
This particular message seems to indicate that you may have users (yourself?) logged in to both the desktop gui (gnome-session-s) and a separate tty, so one session is preventing the other from performing the restart.
That looks like a feature, but some may consider that a bug. This “feature” is also found in other distributions that use gnome.
See
How to identify a GNOME application that acquired an inhibitor lock
gnome-session-b prevents restart/sleep
Poweroff/reboot doesn’t work in GNOME, when an inhibitor
I mean the icon used to restart the PC
Thank you. I’ll read it
I’ve been using Fedora for many years and this is the first time it’s happened to me. It’s something related to Fedora 44
The command recommended in the error message - systemctl reboot -i - should work in this situation.
The inhibitor behaviour itself isn’t new in Fedora 44, but there’s been some changes to what things hold inhibitors and when. Some are intended, some seem to be a bit buggy, we are looking at some of those.
This is a new “feature” in Ptyxis:
You can chime in in the bug report, and use a different terminal emulator until it is fixed.
For anyone else frustrated by this, there is thankfully a gsetting to disable the inhibition feature as a temporary workaround.
After running gsettings set org.gnome.Ptyxis inhibit-logout false, I’m able to run sudo reboot from a ptyxis terminal.
For Fedora, I’ve submitted pull requests to set an override to disable it by default.
Carl, you’re a saviour! Thank you!
