Skip to content

CI: always refresh APT index before installing packages - #241

Merged
pdelsante merged 1 commit into
developfrom
ci/apt-always-update
Oct 5, 2026
Merged

pdelsante merged 1 commit into
developfrom
ci/apt-always-update

Conversation

@pdelsante

Copy link
Copy Markdown
Member

The "Refresh APT repositories" step ran apt-get update only on an APT cache miss. On a cache hit the index was left stale, so apt-get install failed with 404 Not Found when a pinned package version had been rotated out of the mirror (e.g. libcurl4-openssl-dev). Run apt-get update unconditionally: it is cheap and the APT cache still serves the .deb downloads.

Applied to workflows/_python.yml and its hard-linked .github/ self-test copy.

The "Refresh APT repositories" step ran `apt-get update` only on an APT cache
miss. On a cache hit the index was left stale, so `apt-get install` failed with
404 Not Found when a pinned package version had been rotated out of the mirror
(e.g. libcurl4-openssl-dev). Run `apt-get update` unconditionally: it is cheap
and the APT cache still serves the .deb downloads.

Applied to workflows/_python.yml and its hard-linked .github/ self-test copy.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@pdelsante
pdelsante merged commit e5520a3 into develop Oct 5, 2026
5 checks passed
@pdelsante
pdelsante deleted the ci/apt-always-update branch October 5, 2026 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants