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.
This commit is contained in:
Yury Kossakovsky
2025-12-17 10:34:38 -07:00
parent bd52d9f72b
commit fbfa2563c2

View File

@@ -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"