APT /etc/systemd/apt-daily-upgrade.timer

Original 📋 Debian 9 (Stretch) 11 lines

Works On

Viewing:
Debian 9 (Stretch)
Same on:
Debian 10 (Buster) Debian 11 (Bullseye) Debian 12 (Bookworm) Debian 13 (Trixie) Ubuntu 18.04 LTS (Bionic Beaver) Ubuntu 20.04 LTS (Focal Fossa) Ubuntu 22.04 LTS (Jammy Jellyfish) Ubuntu 24.04 LTS (Noble Numbat)
Other versions:

Details

Size
11 lines
MD5
6f1973de70bf3594436cc1a68adc441b
SHA256
b804d7bab8eb41202384f9270e25d5383346ace8b3d7c4f5029c150638d77bcd
/etc/systemd/apt-daily-upgrade.timer
[Unit]
Description=Daily apt upgrade and clean activities
After=apt-daily.timer

[Timer]
OnCalendar=*-*-* 6:00
RandomizedDelaySec=60m
Persistent=true

[Install]
WantedBy=timers.target

Copy & Paste

curl:
curl https://exampleconfig.com/api/v1/config/original/6f1973de70bf3594436cc1a68adc441b?hint=apt-daily-upgrade.timer
wget:
wget -O apt-daily-upgrade.timer https://exampleconfig.com/api/v1/config/original/6f1973de70bf3594436cc1a68adc441b?hint=apt-daily-upgrade.timer

For AI Agents

<prompt><role>DevOps agent</role><source url='https://exampleconfig.com/api/v1/config/original/6f1973de70bf3594436cc1a68adc441b?hint=apt-daily-upgrade.timer' /><config><app>APT</app><os>Debian 9 (Stretch)</os><location>/etc/systemd/apt-daily-upgrade.timer</location><lines>11</lines><md5>6f1973de70bf3594436cc1a68adc441b</md5><sha256>b804d7bab8eb41202384f9270e25d5383346ace8b3d7c4f5029c150638d77bcd</sha256></config></prompt>

Paste into Claude, ChatGPT, or any AI assistant.

Install APT

Debian

sudo apt update && sudo apt install apt

Ubuntu

sudo apt update && sudo apt install apt

File Location

File Path
/etc/systemd/apt-daily-upgrade.timer
Directory
/etc/systemd/
Significance
System-wide configuration directory
Description
Files in /etc/ contain system-wide configuration settings that affect all users.

FAQ

When should I use this apt-daily-upgrade.timer?

Use it to restore a missing default, confirm what shipped, or diff against your current APT config.

How do I restore APT defaults?

Download the file, back up the current one in /etc/systemd/apt-daily-upgrade.timer, replace it, then reload or restart APT.

Is apt-daily-upgrade.timer safe for production?

It is the vendor default for Debian 9 (Stretch). Treat it as a baseline and review security and performance settings before production use.

How does this differ from other OS versions?

Defaults vary by distro and version. This copy matches Debian 9 (Stretch).

Can I use this for APT troubleshooting?

Yes. Diff it against yours to find drift, then restore only the sections you need.