Ubuntu reboots instead of powering off if a software updates exists

Bug #1962346 reported by Ben Aceler
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-shell (Ubuntu)
New
Medium
Unassigned
packagekit (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

When I want to turn off a computer, I got a checkbox "Install deferred updates" (see screenshot, I'm not sure if my back-translation is correct).

If the checkbox is checked, Ubuntu box reboots instead of powering off. It is not "rebopot to install updates". It just reboots to desktop again. If I uncheck the box, it powers off normally.

ProblemType: Bug
DistroRelease: Ubuntu 21.10
Package: gnome-shell 40.5-1ubuntu2
ProcVersionSignature: Ubuntu 5.13.0-27.29-generic 5.13.19
Uname: Linux 5.13.0-27-generic x86_64
ApportVersion: 2.20.11-0ubuntu71
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Sat Feb 26 00:05:44 2022
DisplayManager: gdm3
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=ru_RU.UTF-8
 SHELL=/bin/bash
RelatedPackageVersions: mutter-common 40.5-1ubuntu3~21.10.1
SourcePackage: gnome-shell
UpgradeStatus: Upgraded to impish on 2022-01-11 (45 days ago)

Revision history for this message
Ben Aceler (aceler) wrote :
affects: gnome-shell (Ubuntu) → update-notifier (Ubuntu)
Revision history for this message
Steve Langasek (vorlon) wrote :

I am not able to load the screenshot attached here, can you please try attaching it again?

Revision history for this message
Ben Aceler (aceler) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Could you attach it with a filename with non utf chars? the issue where it can't be opened is bug #1946762

Revision history for this message
Ben Aceler (aceler) wrote :
Revision history for this message
Steve Langasek (vorlon) wrote :

Thanks. The messages in question do not come from either update-notifier or update-manager as far as I can see (in particular, the source string for 'the system will...' is not present in either source package). I am not sure which package is actually presenting this dialog.

Revision history for this message
Steve Langasek (vorlon) wrote :

In fact, I just searched my system and found these strings in gnome-shell after all, so reassigning back to there.

affects: update-notifier (Ubuntu) → gnome-shell (Ubuntu)
Revision history for this message
Ben Aceler (aceler) wrote :

As far as I can say, the dialog itself works as intended. The bug is, that the Ubuntu box is rebooting instead of turninging off.

Revision history for this message
Steve Langasek (vorlon) wrote :

Well, it may or may not be a bug in gnome-shell which implements the dialog; but it is definitely not a bug in update-notifier which is not involved in the communication between gnome-shell and systemd. It is likely a bug in gnome-shell signalling the wrong thing to systemd in this situation.

Changed in gnome-shell (Ubuntu):
importance: Undecided → Low
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

From the screenshot in comment #5 and the gnome-shell (v40) source code:

  Установить обновления и перезапустить

  Система будет автоматически выключена через %d секунд

  [✓] Установить отложенные обновления ПО

Note that's two major releases behind what is in jammy proposed right now so we should retest with gnome-shell 42 when it's ready.

Revision history for this message
Sebastien Bacher (seb128) wrote :

the issue there is that packagekit is proposing offline updates which it shouldn't do on Ubuntu

affects: gnome-shell (Ubuntu) → packagekit (Ubuntu)
Changed in packagekit (Ubuntu):
importance: Low → High
tags: added: rls-jj-incoming
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Still seems low priority. Not many people will care if on some rare occasion they have to wait for a reboot before powering off.

Revision history for this message
Julian Andres Klode (juliank) wrote :

This is *not* a packagekit issue. There are flavours upgrading using packagekit, not everyone uses update-manager. It's either gnome-shell or gnome-session or something that should not be reacting to this.

affects: packagekit (Ubuntu) → gnome-shell (Ubuntu)
Revision history for this message
Julian Andres Klode (juliank) wrote :

Though on the other hand I don't really want flavours to do offline upgrades, but I don't think we have a clear-cut policy on that. Either way, removing the feature inside PackageKit might break some flavours, so seeing as we are past feature freeze, fixing that in the frontend would be less invasive.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Was it a change on the packagekit side this cycle? The shell has been having the same behaviour of displaying the dialog if offline updates are enabled for a long time

Revision history for this message
Sebastien Bacher (seb128) wrote :

Fixing the statement from the previous post, the feature had been not working and was fixed in
https://gitlab.gnome.org/GNOME/gnome-shell/-/commit/83c6b2a

So yes, it's a regression and we need to decide on the best way forward

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Commit 83c6b2a was released already in gnome-shell 3.37.1

Revision history for this message
Sebastien Bacher (seb128) wrote :

@Daniel, do you have any idea what changed that the option starting to show only now on Ubuntu sessions?

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

No I am not familiar with this feature. I also can't seem to trigger it in jammy (reported in impish). Even when I have updates awaiting installation it just powers off when told to.

Revision history for this message
Julian Andres Klode (juliank) wrote :

I wonder if you need to install gnome-software Deb maybe.

Revision history for this message
Ben Aceler (aceler) wrote :

I can say, that I have this dialog only if I have a flatpak updates, not apt updates.

Changed in gnome-shell (Ubuntu):
milestone: none → ubuntu-22.04-beta
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I'm not sure we should assign this to ubuntu-22.04-beta when it's only ever been observed on 21.10.

Revision history for this message
Sebastien Bacher (seb128) wrote :

it's not, we had some team members reporting it on current J serie during our sprint

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Alright, tagged as jammy too. But unless I missed something this should be set to Low priority because it's only a minor annoyance having to reboot again before shutting down.

tags: added: jammy
Changed in packagekit (Ubuntu):
status: New → Invalid
Changed in gnome-shell (Ubuntu):
importance: High → Medium
tags: added: rls-jj-notfixing
removed: rls-jj-incoming
Changed in gnome-shell (Ubuntu):
milestone: ubuntu-22.04-beta → none
tags: removed: impish
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.