Skip to content

fix: warmup - disable OS background auto-updates before package installs #204

Description

@hyde-repo

fix: warmup - disable OS background auto-updates before package installs

Umbrella: #178
Wave: WAVE_04 (since 2026-06-05)

Problem

On fresh VMs, software.install.warmup.basic_packages runs apt/dnf installs while the OS background
auto-updater is still running and holding the package lock. One random VM then fails, e.g. :

install 'ufw=0.36.2-6' failed: E: Could not get lock /var/lib/dpkg/lock-frontend.
It is held by process ... (unattended-upgr)

Fix

Add an early step in the warmup role (before any package install), OS-branched, that stops + disables + masks
the background auto-updater units. Lab VMs are ephemeral with a controlled package state, so disabling
auto-updates is both the fix and the desired behaviour.

Units to neutralise :

  • Ubuntu / Debian (apt) : apt-daily.timer, apt-daily-upgrade.timer, apt-daily.service,
    apt-daily-upgrade.service, unattended-upgrades.service
  • Fedora (dnf) : dnf-automatic.timer (+ dnf-automatic-install.timer / dnf-automatic-download.timer),
    packagekit.service, dnf-makecache.timer

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions