From f331bf8122ae84b65879cdd9bafef44be97dcfb1 Mon Sep 17 00:00:00 2001 From: Andrejus Date: Wed, 18 Mar 2026 10:46:46 +0000 Subject: [PATCH] fix: always run apt-get update in 11-apt.sh Move apt-get update before the 'already installed' check so the package index is always refreshed. Previously, on environments like Codespaces where base packages are pre-installed, the update was skipped entirely, causing downstream scripts (e.g. 23-stow.sh) to fail with 'Unable to locate package'. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- install.d/11-apt.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install.d/11-apt.sh b/install.d/11-apt.sh index 21f341a..6a271f5 100755 --- a/install.d/11-apt.sh +++ b/install.d/11-apt.sh @@ -17,13 +17,14 @@ apt_packages=( wget ) -# Skip if all packages already installed +sudo apt-get update -qq + +# Skip install if all packages already installed if dpkg -s "${apt_packages[@]}" &>/dev/null; then apt --version | log_quote return 0 fi -sudo apt-get update -qq sudo apt-get install -qq "${apt_packages[@]}" unset apt_packages