From c493904cfc106b1c2bf6682fdb2a72932bc89222 Mon Sep 17 00:00:00 2001 From: Josh Cooper Date: Wed, 6 May 2026 16:43:10 -0700 Subject: [PATCH] Run apt-get update If the apt cache is stale on the GitHub runner, then it may fail to install Get:1 file:/etc/apt/apt-mirrors.txt Mirrorlist [144 B] Ign:2 http://azure.archive.ubuntu.com/ubuntu noble-updates/main amd64 libcurl4-openssl-dev amd64 8.5.0-2ubuntu10.8 Ign:2 https://archive.ubuntu.com/ubuntu noble-updates/main amd64 libcurl4-openssl-dev amd64 8.5.0-2ubuntu10.8 Ign:2 https://security.ubuntu.com/ubuntu noble-updates/main amd64 libcurl4-openssl-dev amd64 8.5.0-2ubuntu10.8 Err:2 mirror+file:/etc/apt/apt-mirrors.txt noble-updates/main amd64 libcurl4-openssl-dev amd64 8.5.0-2ubuntu10.8 404 Not Found [IP: 52.154.174.208 80] E: Failed to fetch mirror+file:/etc/apt/apt-mirrors.txt/pool/main/c/curl/libcurl4-openssl-dev_8.5.0-2ubuntu10.8_amd64.deb 404 Not Found [IP:52.154.174.208 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? Also use `apt-get` instead of `apt` as the former is recommending for scripting, while the latter prints: WARNING: apt does not have a stable CLI interface. Use with caution in scripts. --- .github/workflows/static_code_analysis.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/static_code_analysis.yaml b/.github/workflows/static_code_analysis.yaml index be60d43..26170b8 100644 --- a/.github/workflows/static_code_analysis.yaml +++ b/.github/workflows/static_code_analysis.yaml @@ -21,7 +21,9 @@ jobs: # Patron, which is a transitive dependency of beaker-abs and Bolt, requires cURL libraries - name: Install cURL development files - run: sudo apt install -y libcurl4-openssl-dev + run: | + sudo apt-get update + sudo apt-get install -y libcurl4-openssl-dev - name: Install ruby version ${{ env.ruby_version }} uses: ruby/setup-ruby@v1