pop-os/system-updater

Automatic update settings don't apply, and are reverted after a reboot

Closed this issue · 4 comments

Distribution (run cat /etc/os-release):

NAME="Pop!_OS"
VERSION="22.04 LTS"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 22.04 LTS"
VERSION_ID="22.04"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=jammy
UBUNTU_CODENAME=jammy
LOGO=distributor-logo-pop-os

Issue/Bug Description:

Every time I select Automatic Update, this button is deselected.

Screenshot from 2022-10-30 17-26-16

Steps to reproduce (if you know):

Settings --> OS Upgrade & Recovery --> Automatic Update

Expected behavior:

That the selection does not change and it is possible to rely on the button to stay in place.

Sorry, I'm not sure I understand what you mean. Are you referring to the "show update notifications" control becoming insensitive when automatic updates are enabled? If so, that is by design. The "Automatically install" button below that pops out a dialog where you can control the frequency which updates are installed, so there is no need for the interval selector.

Unless you would prefer to have updates installed automatically, as well as receiving a notification when updates are available? If so, I don't think that's desirable behavior for the vast majority of users, but we can probably take it into consideration from a UX perspective. Could you explain why you would want to be notified before updates are automatically installed, and why you would not want to be controlling when those updates get installed manually?

After I selected Automatic updates and the date....if I reboot my laptop this is not selected.

Aha, I think I'm seeing what you're describing now. Sorry for the initial misunderstanding. I'll move this to the correct repository and tweak the title a little bit.

Here's the console output I see when I run gnome-control-center from the terminal and toggle the auto update setting:

system76@pop-os:~$ gnome-control-center 
[gtk/src/events/background/scan.rs:64] Some(info.current.clone()) = Some(
    "22.04",
)
failed to change auto-update setting: org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
failed to change scheduling: org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
failed to set auto-update config with user session service: MethodError(OwnedErrorName(ErrorName(Str(Owned("org.freedesktop.DBus.Error.ServiceUnknown")))), Some("The name is not activatable"), Msg { type: Error, sender: UniqueName(Str(Borrowed("org.freedesktop.DBus"))), reply-serial: 2, body: Signature: [
	s (115),
] })

The setting appears to change in GCC, but is changed back after a reboot.

I've got the same problem open in this issue report here pop-os/pop/issues/2634. Still goes unfixed even with a fresh install with a boot-able USB image. Maybe some of the resources I placed in that ticket would be helpful.