Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow apt updates to be automatically installed #52

Closed
3 tasks
lewisgoddard opened this issue May 18, 2017 · 8 comments · Fixed by #118
Closed
3 tasks

Allow apt updates to be automatically installed #52

lewisgoddard opened this issue May 18, 2017 · 8 comments · Fixed by #118
Assignees
Labels
Priority: Wishlist Not a priority, but something that might be nice

Comments

@lewisgoddard
Copy link
Member

lewisgoddard commented May 18, 2017

Right now whenever I log on I am pinged about a few minor updates, that rarely require a restart. Why not just install them whenever there's reliable network?

Suggested options:

  • Don't auto-install any updates. [Not recommended]
  • Auto-install only Security updates. [Default]
  • Auto-install all updates.

We should never auto-install driver updates or anything that removes packages marked as installed (as opposed to dependencies, which we can safely remove).

@danirabbit danirabbit added the Priority: Wishlist Not a priority, but something that might be nice label May 18, 2017
@cassidyjames
Copy link
Contributor

Just have to be exceedingly careful about updates that are potentially breaking updates since we don't have a rollback mechanism for the OS.

@lewisgoddard
Copy link
Member Author

I guess that this shouldn't include stuff that appears in the drivers section, or the big kernel upgrades that come with new stacks. Apart from that, auto-installing isn't much different from prompting the user every time they log on.

@danirabbit danirabbit changed the title Allow updates to be automatically installed. Allow updates to be automatically installed. [$25] Jul 29, 2018
@cassidyjames cassidyjames changed the title Allow updates to be automatically installed. [$25] Allow updates to be automatically installed Nov 11, 2020
@cassidyjames
Copy link
Contributor

Since this seems to be talking about apt updates, I'm going to clarify it around that and open a new issue for Flatpak automatic updates.

@cassidyjames cassidyjames changed the title Allow updates to be automatically installed Allow apt updates to be automatically installed Nov 11, 2020
@davidmhewitt
Copy link
Member

I think the easiest way to do this technically would be to make use of the packagekit offline updates flow. If automatic updates are enabled, download them in the background (if not on a metered connection) and then schedule them to be installed on the next shutdown or reboot.

We could probably add an option to the shutdown dialog to skip installing them on that particular shutdown reboot if someone wanted to shutdown/reboot fast for whatever reason.

@marbetschar
Copy link
Member

@davidmhewitt does this also work with hibernation? Personally I rarely ever restart my Laptop - but as for "automatic updates" I'd expect updates to be installed without user interaction most of the time aka. without the need of a restart. If a restart is needed, I'd expected to be explicitly prompted.

@davidmhewitt
Copy link
Member

I doubt it works with hibernation.

A lot of apt updates require a reboot (or at least a restart of the programs/daemons contained within), and we have no programattic way of determining which ones require that. Sure, we could guess and make a list of things that almost certainly need a reboot like the kernel, systemd, etc... but there would always be something we missed.

That said, according to this issue report, we don't want to automatically update potentially breaking packages automatically anyway. So maybe what I'm saying is irrelevant if we're only suggesting to update "apps" automatically.

However, I'm advocating offline upgrades as a safe, tested way of doing this. They run while the OS is shutting down with an explicit "packages are updating, don't turn off your system" message, so it's clear what's happening. If we just let AppCenter do them in the background, I can see people going, "Why is AppCenter consuming CPU in the background?!" and killing it, then they're left with broken packages.

Offline upgrades are used as standard in Fedora/GNOME software and seem to work reasonably well.

It's also quite difficult to implement logic for dealing with dependencies on top of PackageKit, so even if we decide that we only want to update apps (like this issue report suggests), those apps that we want to update might pull in updated dependencies for system components, that pull in updated drivers, that pull in an updated kernel, so I think it's possibly an unrealistic goal to suggest that we'd be able to say with 100% certainty that we won't update "dangerous" packages with "automatic updates" whether they're offline or online.

@internetman420
Copy link

internetman420 commented Dec 5, 2020

Please implement this. It is actually one thing that is for the time being making me not suggesting EOS to less tech-savvy friends because I foresee that the constant small updates notifications will annoy the h**l out of them :/

@danirabbit
Copy link
Member

I'm going to transfer this to settings daemon since we've been talking about doing offline updates there

@danirabbit danirabbit transferred this issue from elementary/appcenter Apr 22, 2022
@danirabbit danirabbit self-assigned this Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Wishlist Not a priority, but something that might be nice
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

6 participants