So I have had mixed results with unattended upgrades on Debian based distros. It sometimes works and sometimes doesn’t. It turns out that sometimes you need to enable it though dpkg-reconfigure unattended-upgrades

Problem solved

  • JustEnoughDucks
    link
    fedilink
    91 year ago

    Not a fan od it. I had more of a problem with unattended upgrades at least weekly restarting my system even though I had restarts explicitely disabled.

    After a lot of “impossible” in the support forums saying “that would never happen” even after showing that it happened in flesh during the unattended upgrade, I uninstalled it and voila, I have only had a restart intentionally or by a crash.

    • @Oisteink@feddit.nl
      link
      fedilink
      English
      111 year ago

      It is impossible that unattended-upgrades reboots without the Unattended-Upgrade::Automatic-Reboot flag set. Source: the function def reboot_if_requested_and_needed(): on line 1688 in the script.

      Probably your config was wrong

      • 𝒍𝒆𝒎𝒂𝒏𝒏
        link
        41 year ago

        Same, never had unattended upgrades trigger a reboot in all the years it’s been set up on my project servers.

        The only cause of reboots in my case has been power failures and dead UPSes lol

  • igorlogius
    link
    fedilink
    English
    6
    edit-2
    1 year ago

    Kind of glad i dont have to worry about stuff like this anymore, but i do sympathize as a former debian user.

    • @h3ndrik@feddit.de
      link
      fedilink
      4
      edit-2
      1 year ago

      Moved to the countryside and stopped using computers? Or why don’t you need to worry about automatic updates? Are you the boss and other people do the worrying? Or do you use one of those immutable distros and now worry in a different way?

      • igorlogius
        link
        fedilink
        English
        11
        edit-2
        1 year ago

        well, with stuff like this i meant dpkg-reconfigure, since i switched to nixos where configuring and setting up basically means adding/editing a couple of lines in /etc/nixos/configuration.nix. For automatic system updates for example, i just had to add: system.autoUpgrade.enable = true; and done. Nicest way to configure and manage a system i’ve experienced yet.

        • WeAreAllOne
          link
          fedilink
          21 year ago

          Don’t all these edits create huge snapshots or what is called in nixos ?

          • igorlogius
            link
            fedilink
            English
            11
            edit-2
            1 year ago

            not really an issue with a few more lines of configuration

            nix.gc = {
                automatic = true;
                dates = "weekly";
                options = "--delete-older-than 30d";
            };