From fbfa2563c204bc973b624e2aef8048297ddd702c Mon Sep 17 00:00:00 2001 From: Yury Kossakovsky Date: Wed, 17 Dec 2025 10:34:38 -0700 Subject: [PATCH] fix: enable universe repository for fail2ban and python3-dotenv on minimal ubuntu installations (especially cloud vps), the universe repository may be disabled by default, causing apt to fail installing packages like fail2ban and python3-dotenv which are only available in universe. this adds software-properties-common and enables universe before installing packages. --- scripts/01_system_preparation.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/01_system_preparation.sh b/scripts/01_system_preparation.sh index 34db55f..c30e838 100755 --- a/scripts/01_system_preparation.sh +++ b/scripts/01_system_preparation.sh @@ -22,8 +22,13 @@ export DEBIAN_FRONTEND=noninteractive # System Update log_subheader "System Update" -log_info "Updating package list and upgrading the system..." -apt update -y && apt upgrade -y +log_info "Updating package list..." +apt update -y +log_info "Enabling universe repository..." +apt install -y software-properties-common +add-apt-repository universe -y +log_info "Upgrading the system..." +apt upgrade -y # Installing Basic Utilities log_subheader "Installing Utilities"