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 <