From c460f7c9e2cc54405163a951dc9e73b6a9ace4e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C4=83rcziem=20=E2=84=A2?= <118485377+spalencsar@users.noreply.github.com> Date: Fri, 3 Oct 2025 11:54:27 +0200 Subject: [PATCH] fix(unattended): preseed debconf and install non-interactively to avoid prompts --- lib/unattended-upgrades.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/unattended-upgrades.sh b/lib/unattended-upgrades.sh index df52609..81c4529 100644 --- a/lib/unattended-upgrades.sh +++ b/lib/unattended-upgrades.sh @@ -7,8 +7,12 @@ configure_unattended_upgrades() { case $DISTRO in ubuntu|debian) - handle_error sudo apt-get install -y unattended-upgrades apt-listchanges - sudo dpkg-reconfigure -plow unattended-upgrades + # Preseed debconf to avoid interactive prompts and install non-interactively + sudo debconf-set-selections < /dev/null <