Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: "-y" not working in apt-get autoremove script

  1. #11
    Join Date
    Jul 2013
    Location
    Wisconsin
    Beans
    4,520

    Re: "-y" not working in apt-get autoremove script

    Unattended Upgrades seems to be working properly on your system.

    If you have reason to believe otherwise, check the systemd timer for the daily-run-time, then check the timestamp for corresponding successful compltetion, then check the log to see what packages it did.

    If you identify packages that aren't getting upgraded automatically, then look to see what source they are coming from. See if that source is enabled in the config file.

    Those are the troubleshooting steps that solve 90% of u-u problems.

    Again, automatic upgrade from the -proposed repository is discouraged. -proposed packages are for testing, and may break your system. Yours is enabled.

  2. #12
    Join Date
    Feb 2016
    Beans
    Hidden!

    Re: "-y" not working in apt-get autoremove script

    Quote Originally Posted by ian-weisser View Post
    Again, automatic upgrade from the -proposed repository is discouraged. -proposed packages are for testing, and may break your system. Yours is enabled.

    Ok, so here's how I've edited the config. Just want to post it here to double-check it's right- something about commenting with "/" instead of "#" makes me a bit worried. Assuming this is correct here?

    Code:
    // Automatically upgrade packages from these (origin:archive) pairsUnattended-Upgrade::Allowed-Origins {
            "${distro_id}:${distro_codename}";
            "${distro_id}:${distro_codename}-security";
            // Extended Security Maintenance; doesn't necessarily exist for
            // every release and this system may not have it installed, but if
            // available, the policy for updates is such that unattended-upgrades
            // should also install from here by default.
            "${distro_id}ESM:${distro_codename}";
            "${distro_id}:${distro_codename}-updates";
            //"${distro_id}:${distro_codename}-proposed";
            "${distro_id}:${distro_codename}-backports";
    };

    Quote Originally Posted by ian-weisser View Post
    Unattended Upgrades seems to be working properly on your system.


    If you have reason to believe otherwise, check the systemd timer for the daily-run-time, then check the timestamp for corresponding successful compltetion, then check the log to see what packages it did.
    Is there a way to have it run every 3 hours?


    At the moment I have that script I mentioned earlier running every logon, plus I have an hourly "aptitude update" cron job that switches the tray icon to red if there's anything to do. At that point I run the launcher to have that script do it.

  3. #13
    Join Date
    Jul 2013
    Location
    Wisconsin
    Beans
    4,520

    Re: "-y" not working in apt-get autoremove script

    Your config looks good.
    Unattended-upgrades is intended to run daily or weekly.
    I suppose you can cronjob u-u to run more often if you really want to. I see no benefit to do such, but it's not my system.
    Remember to disable the existing daily apt cronjob.

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •