Skip to content

CI: always refresh APT index before installing packages#241

Open
pdelsante wants to merge 1 commit into
developfrom
ci/apt-always-update
Open

CI: always refresh APT index before installing packages#241
pdelsante wants to merge 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>
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.

2 participants