Package: apt
Version: 3.0.3
Severity: normal
X-Debbugs-Cc: [email protected]

A minimal Debian installation does not run apt update periodically, although
there are mechanisms to enable it via apt-daily.service.

I was hit by this since I know I have apt-daily enabled, but I was surprised
that the apt update is disabled by default. Specially for people running some
minimal image or a container this might useful. I guess that under some
desktop environment the update of the packages happens under the hood, but
that also seems to be not universal, since for xfce I do not get the updates.

Maybe this could be reconsidered and periodic apt update enabled? Or if that
is too much maybe it can be documented in the wiki. A simple mechanism
would be to add the following in /etc/apt/apt.conf.d/10periodic:

APT::Periodic::Enable "1";
APT::Periodic::Update-Package-Lists "1";

This is kind of documented in the Administrator handbook: 
https://debian-handbook.info/browse/stable/sect.regular-upgrades.html

but maybe it would be more accesible in the Debian wiki? Maybe also a man
page on apt.systemd.daily?

Thanks!


-- Package-specific info:

-- (no /etc/apt/preferences present) --


-- (no /etc/apt/preferences.d/* present) --


-- (no /etc/apt/sources.list present) --


-- (/etc/apt/sources.list.d/debian.sources present, but not submitted) --


-- (/etc/apt/sources.list.d/spotify.list present, but not submitted) --


-- System Information:
Debian Release: 13.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.74+deb13+1-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8), 
LANGUAGE=es_ES:es
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages apt depends on:
ii  adduser                 3.152
ii  base-passwd             3.6.7
ii  debian-archive-keyring  2025.1
ii  libapt-pkg7.0           3.0.3
ii  libc6                   2.41-12+deb13u2
ii  libgcc-s1               14.2.0-19
ii  libseccomp2             2.6.0-2
ii  libssl3t64              3.5.5-1~deb13u1
ii  libstdc++6              14.2.0-19
ii  libsystemd0             257.9-1~deb13u1
ii  sqv                     1.3.0-3+b2

Versions of packages apt recommends:
ii  ca-certificates  20250419

Versions of packages apt suggests:
pn  apt-doc         <none>
ii  dpkg-dev        1.22.22
ii  gnupg           2.4.7-21+deb13u1
ii  powermgmt-base  1.38
ii  synaptic        0.91.7

-- no debconf information

Reply via email to