From 35a1e7b69bcc98cc1d37ff25e9adaf9af0bbbbab Mon Sep 17 00:00:00 2001 From: Yilin Sun Date: Fri, 19 Apr 2024 11:47:15 +0800 Subject: [PATCH] ci: Stop unattended-upgrades manually. Signed-off-by: Yilin Sun --- .drone/install_dependencies.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.drone/install_dependencies.sh b/.drone/install_dependencies.sh index 83d7de1..ddbaa46 100755 --- a/.drone/install_dependencies.sh +++ b/.drone/install_dependencies.sh @@ -1,7 +1,11 @@ #!/usr/bin/env bash -echo "Sleep 5 minutes to overcome the unattended-upgrade period" -sleep 300 +echo "Stopping unattended-upgrades to re-gain control of apt..." + +systemctl stop unattended-upgrades + +echo "Stopped." + apt-get update apt-get install -y \ sed make binutils build-essential diffutils \