[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Unattended upgrades. Debian methods, please, not Ubuntu.



Lisi Reisz [2017-03-22 00:37:18Z] wrote:

> How do I get unattended upgrades a) to function and b) to tell me when
> it has upgraded something.

Probably you need to add the following lines in the top of
/etc/apt/apt.conf.d/50unattended-upgrades file (or some other file in
the same directory).

    APT::Periodic::Update-Package-Lists "1";
    APT::Periodic::Unattended-Upgrade "1";
    APT::Periodic::CleanInterval "1";

Systemd timer and service apt-daily.{timer,service} runs daily but if a
laptop is on battery power the service unit doesn't do anything. That's
easy to override on Debian 9 but requires an uglier hack on Debian 8.

-- 
/// Teemu Likonen   - .-..   <https://keybase.io/tlikonen> //
// PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 ///

Attachment: signature.asc
Description: PGP signature


Reply to: