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

Original 📋 Debian 11 (Bullseye) 12 lines

Works On

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

Details

Size
12 lines
MD5
a05db20a2f3adc9f4175c37140e62a2a
SHA256
da0651537cad0ed384291bd50c0bbc3268e6c625626ec9344150de4e8db3925e
/etc/systemd/apt-daily-upgrade.service
[Unit]
Description=Daily apt upgrade and clean activities
Documentation=man:apt(8)
ConditionACPower=true
After=apt-daily.service network.target network-online.target systemd-networkd.service NetworkManager.service connman.service

[Service]
Type=oneshot
ExecStartPre=-/usr/lib/apt/apt-helper wait-online
ExecStart=/usr/lib/apt/apt.systemd.daily install
KillMode=process
TimeoutStopSec=900

Copy & Paste

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

For AI Agents

<prompt><role>DevOps agent</role><source url='https://exampleconfig.com/api/v1/config/original/a05db20a2f3adc9f4175c37140e62a2a?hint=apt-daily-upgrade.service' /><config><app>APT</app><os>Debian 11 (Bullseye)</os><location>/etc/systemd/apt-daily-upgrade.service</location><lines>12</lines><md5>a05db20a2f3adc9f4175c37140e62a2a</md5><sha256>da0651537cad0ed384291bd50c0bbc3268e6c625626ec9344150de4e8db3925e</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.service
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.service?

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.service, replace it, then reload or restart APT.

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

It is the vendor default for Debian 11 (Bullseye). 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 11 (Bullseye).

Can I use this for APT troubleshooting?

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