Fix interrupted dpkg state before apt-get
Run dpkg --configure -a before apt operations to recover from any previously interrupted package installations.
This commit is contained in:
@@ -31,6 +31,7 @@ echo ""
|
||||
# Install packages (noninteractive to prevent hanging on prompts)
|
||||
echo "[1/8] Installing packages..."
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
dpkg --configure -a 2>/dev/null || true # Fix any interrupted dpkg state
|
||||
apt-get update -qq
|
||||
apt-get install -y -qq earlyoom monit
|
||||
|
||||
|
||||
Reference in New Issue
Block a user