APT /etc/systemd/apt-daily.service

Original 📋 Ubuntu 24.04 LTS (Noble Numbat) 11 lines

Works On

Viewing:
Ubuntu 24.04 LTS (Noble Numbat)
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)
Other versions:

Details

Size
11 lines
MD5
2e25f0c08d2bd2776015d7b4d0fcb553
SHA256
90f87047f4ea2f261f9117d02870de8719f808b911bb1808bf039ff3c162e5e9
/etc/systemd/apt-daily.service
[Unit]
Description=Daily apt download activities
Documentation=man:apt(8)
ConditionACPower=true
After=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 update

Copy & Paste

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

For AI Agents

<prompt><role>DevOps agent</role><source url='https://exampleconfig.com/api/v1/config/original/2e25f0c08d2bd2776015d7b4d0fcb553?hint=apt-daily.service' /><config><app>APT</app><os>Ubuntu 24.04 LTS (Noble Numbat)</os><location>/etc/systemd/apt-daily.service</location><lines>11</lines><md5>2e25f0c08d2bd2776015d7b4d0fcb553</md5><sha256>90f87047f4ea2f261f9117d02870de8719f808b911bb1808bf039ff3c162e5e9</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.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.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.service, replace it, then reload or restart APT.

Is apt-daily.service safe for production?

It is the vendor default for Ubuntu 24.04 LTS (Noble Numbat). 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 Ubuntu 24.04 LTS (Noble Numbat).

Can I use this for APT troubleshooting?

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