From 3d972bd144703bab255869a71c991d4d51ee43dd Mon Sep 17 00:00:00 2001 From: rain Date: Sun, 21 Jun 2026 20:58:00 -0400 Subject: [PATCH] run_once_05: stop pre-installing pacstall deps, let installer handle them The pacstall installer has its own dep install logic that handles edge cases (e.g. debian-trixie dropped spdx-licenses from apt, so the installer has a fallback to fetch the .deb directly from ftp.debian.org and install via 'apt install /path/to/deb'). My script was duplicating that logic with a strict apt-get install that failed because spdx-licenses isn't in trixie apt. Fix: install only the absolute minimum (curl, wget, ca-certificates, sudo) so the installer can fetch and verify its own deps. Trust the installer. --- run_once_05-install-pacstall.sh.tmpl | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/run_once_05-install-pacstall.sh.tmpl b/run_once_05-install-pacstall.sh.tmpl index f4654f8..2c249ba 100644 --- a/run_once_05-install-pacstall.sh.tmpl +++ b/run_once_05-install-pacstall.sh.tmpl @@ -24,17 +24,24 @@ if command -v pacstall >/dev/null 2>&1; then exit 0 fi -# Install pacstall's apt deps first (idempotent — pacstall will skip if present) -log "installing pacstall apt dependencies" +# Update apt cache (installer needs it) sudo apt-get update -y + +# Make sure we have the tools the pacstall installer needs to fetch and +# verify its own dependencies. It handles the rest itself. +log "ensuring pacstall installer prerequisites" sudo apt-get install -y --no-install-recommends \ - sudo wget build-essential unzip git zstd iputils-ping \ - aptitude bubblewrap jq distro-info-data spdx-licenses \ - gettext curl ca-certificates + curl wget ca-certificates sudo # Fetch and run pacstall's official installer. # It must be invoked as root (sudo). NON_INTERACTIVE=true +