fix(ci): apt-get update before every apt-get install - #12
Closed
h4x0r wants to merge 1 commit into
Closed
Conversation
`apt-get install` with no preceding `apt-get update` is a time bomb rather
than a flake. The GitHub runner image ships a pre-baked apt list pinning an
exact .deb version; it works until Ubuntu supersedes that version in the
archive, and then the pinned URL 404s on every run until the runner image is
rebuilt:
E: Failed to fetch .../<pkg>_<ver>_amd64.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with
--fix-missing?
That is exactly what took out two jobs in vhd-forensic. apt names the fix in
its own error text.
Found by sweeping the fleet after fixing that one repo: 70 install sites
across 10 repos had no preceding update, all latent, each failing on whatever
day its package next gets a security update. This repo's share is fixed here.
Sites that already refresh the lists are untouched.
Verified locally in a container rather than by re-running CI. On ubuntu:24.04,
installing with the image's shipped apt state fails ("E: Unable to locate
package") and the same install succeeds after apt-get update.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Contributor
Author
|
Closing: this was a false positive of my own sweep. My detector only looked at the preceding lines for |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
apt-get installwith no precedingapt-get updateis a time bomb ratherthan a flake. The GitHub runner image ships a pre-baked apt list pinning an
exact .deb version; it works until Ubuntu supersedes that version in the
archive, and then the pinned URL 404s on every run until the runner image is
rebuilt:
E: Failed to fetch .../__amd64.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with
--fix-missing?
That is exactly what took out two jobs in vhd-forensic. apt names the fix in
its own error text.
Found by sweeping the fleet after fixing that one repo: 70 install sites
across 10 repos had no preceding update, all latent, each failing on whatever
day its package next gets a security update. This repo's share is fixed here.
Sites that already refresh the lists are untouched.
Verified locally in a container rather than by re-running CI. On ubuntu:24.04,
installing with the image's shipped apt state fails ("E: Unable to locate
package") and the same install succeeds after apt-get update.
Co-Authored-By: Claude Opus 5 noreply@anthropic.com