Unattended Upgrades

Discussion in 'Installation/Configuration' started by Piotrek, Feb 26, 2019.

  1. Piotrek

    Piotrek New Member

    Hello all! I have Ubuntu 16.04.5 LTS. I would like to configure unattended-upgrades. I have used this tutorial. I have few questions:
    1. When (what time - hours, minutes) these updates will be installed? I need to know it, because machine's restart is related with successful updates installation.
    2. In "Step 3" is mentioned option --> "Download-Upgradeable-Packages: 1 enables auto download package, 0 for disable." If it is disabled then updates won't be downloaded, installed and so on?
    3. Do these updates will also update Ubuntu to newer version or only update current version?
    4. Why tutorial says to edit 20auto-upgrades file but not 10periodic?
    My config:
    - /etc/apt/apt.conf.d/50unattended-upgrades
    // Automatically upgrade packages from these (origin:archive) pairs                                                   
    Unattended-Upgrade::Allowed-Origins {                                                                                 
            // 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}:${distro_codename}-proposed";                                                                   
    //      "${distro_id}:${distro_codename}-backports";                                                                   
    Currently I have commented out:
    //Unattended-Upgrade::Automatic-Reboot "true";
    //Unattended-Upgrade::Automatic-Reboot-Time "02:00";
    - /etc/apt/apt.conf.d/20auto-upgrades
    APT::Periodic::Update-Package-Lists "1";                                                                               
    APT::Periodic::AutocleanInterval "7";                                                                                 
    APT::Periodic::Unattended-Upgrade "1";
    Last edited: Feb 26, 2019

Share This Page