From 9c18ce0f2d28a4db6ab09f894ab006a3cc2b3803 Mon Sep 17 00:00:00 2001 From: MichaIng Date: Wed, 29 May 2024 15:58:05 +0200 Subject: [PATCH] [Ubuntu 24.04] Remove needrestart package from image since it triggers a restart of all systemd services, including the `runner-provisioner`, crashing the workflow, whenever packages from the OpenSSL/LibSSL package source are upgraded. Solves: https://github.com/actions/runner-images/issues/9937 Signed-off-by: MichaIng --- images/ubuntu/scripts/build/configure-apt.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/images/ubuntu/scripts/build/configure-apt.sh b/images/ubuntu/scripts/build/configure-apt.sh index b36e4762b7..1048171031 100644 --- a/images/ubuntu/scripts/build/configure-apt.sh +++ b/images/ubuntu/scripts/build/configure-apt.sh @@ -37,6 +37,9 @@ EOF # Uninstall unattended-upgrades apt-get purge unattended-upgrades +# Uninstall needrestart: https://github.com/actions/runner-images/issues/9937 +is_ubuntu24 && apt-get purge needrestart + echo 'APT sources' cat /etc/apt/sources.list