setup-runner's "Disable unattended upgrades" step rm -fs /var/lib/dpkg/lock*, which is racy (dpkg warns it's "always wrong") — unattended-upgrades can re-grab the lock before our apt-get install runs, failing the job (Could not get lock /var/lib/dpkg/lock-frontend ... held by pid …).
Fix: drop the lock-file removal and instead make apt wait for the lock:
echo 'DPkg::Lock::Timeout "300";' | sudo tee /etc/apt/apt.conf.d/99lock-timeout
(Keep disabling the apt-daily timers/services.)
setup-runner's "Disable unattended upgrades" steprm -fs/var/lib/dpkg/lock*, which is racy (dpkg warns it's "always wrong") — unattended-upgrades can re-grab the lock before ourapt-get installruns, failing the job (Could not get lock /var/lib/dpkg/lock-frontend ... held by pid …).Fix: drop the lock-file removal and instead make apt wait for the lock:
(Keep disabling the apt-daily timers/services.)