Schedule unattended-upgrades once per month

Roy Zuo roy.zuo at
Mon Jul 11 23:22:40 UTC 2016

Hi Mian,

As per systemd.timer(7) you can change the timer to whatever frequency you would
like. The following should make update/upgrade happen monthly.

    OnCalendar=*-*-05 00:00

Probably you should disable apt-daily.timer all together and create a new one
named apt-monthly.timer so that your changes are not overridden by future
upgrades.  Also, you have to create a apt-monthly.service accordingly.

Modifications to `/etc/apt/apt.conf.d/10periodic` should still be needed if
you would like to go fully unattended.

    APT::Periodic::Unattended-Upgrade "1";

Still `/etc/apt/apt.conf.d/50unattended-upgrades` controls the packages you
would like to upgrade.



On Mon, Jul 11, 2016 at 02:55:13PM +0200, mian.hou at wrote:
>Hi systemd experts here:
>    I'd like any advice/clue regarding scheduling apt automatic update/upgrade
>and the possibility of bellow request:
>    The current largest interval between 2 scheduled update/upgrade is "every
>two weeks", is it possible to set the schedule to be monthly? for example, make
>apt automatic update/upgrade only happen once on the 5th of each month?
>    Seems I can use systemd and apt-daily.timer to let apt automatic update/
>upgrade happen multiple times each day, but apt-daily.timer cannot override the
>daily apt update/upgrade with a less frequency such as once per month.
>Canonical Support and Technical Services
>Email: [1]mian.hou at
>Mobile: +86 139 1138 6220
>[1] mailto:mian.hou at

>Sts-team mailing list
>Sts-team at
>Modify settings or unsubscribe at:

Roy Zuo

Canonical Support and Technical Services, Technical Support Engi (APAC)
Email: roy.zuo at
Mobile: +61 423 222 082

More information about the ubuntu-server mailing list