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

Authentic ๐Ÿ“‹ Debian 13 (Trixie) 12 lines

Compatibility

Currently viewing:
Debian 13 (Trixie)
Also compatible:
Debian 10 (Buster) Debian 11 (Bullseye) Debian 12 (Bookworm) Ubuntu 20.04 LTS (Focal Fossa) Ubuntu 22.04 LTS (Jammy Jellyfish) Ubuntu 24.04 LTS (Noble Numbat)
Different versions:

File Info

Size
12 lines
MD5
a05db20a2f3adc9f4175c37140e62a2a
SHA256
da0651537cad0ed384291bd50c0bbc3268e6c625626ec9344150de4e8db3925e

Quick Commands

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
/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

How to Install APT

Debian

sudo apt update && sudo apt install apt

Ubuntu

sudo apt update && sudo apt install apt

Configuration 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.

Quick Answers

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

Use this file to restore APT defaults after misconfiguration, for fresh installations, or as a customization baseline.

How do I restore APT defaults?

Download this file, backup your current config, then replace /etc/systemd/apt-daily-upgrade.service. Restart APT service.

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

Factory default from APT on Debian 13 (Trixie). Safe baseline, but customize for your requirements.

How does this differ from other OS versions?

This config is from Debian 13 (Trixie). Other OS versions may have different defaults. Check compatibility section.

Can I use this for APT troubleshooting?

Yes, compare this original config with your current settings to identify problematic modifications.