Repository navigation
containers: use the regular Ubuntu archive instead of snapshot.ubuntu.com - #66
Merged
Merged
Conversation
snapshot.ubuntu.com answers single requests with 500/503. apt only warns about failed index downloads and continues with an incomplete package list, so the ubuntu-2004 image build failed later with "Unable to locate package". Which files failed changed with every run. containers/utils/apt-update.sh runs apt-get update up to 6 times with an increasing delay, treats "Failed to fetch" as a failure, and sets Acquire::Retries for the package downloads. Both Ubuntu images use it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Requests then reach snapshot.ubuntu.com one at a time per connection. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
The
ubuntu-2004image onmainfails (runs 43865160132, 43868886269). snapshot.ubuntu.com answers many requests with 500/503, and which index files fail changes with every run. apt only warns about failed index downloads and continues with an incomplete package list, so the build fails later with a misleadingUnable to locate package python3.A first version of this PR retried
apt-get update. That fixed the index errors, but the package downloads (259 packages, 161 MB) then ran at about 100 kB/s and the image build would take more than 30 minutes. So the snapshot is dropped instead.Change
ubuntu-2004andubuntu-2204read the regular Ubuntu archive.ubuntu-2204(arm64) already did this in practice, because the snapshot has no ubuntu-ports; its leftover snapshotsedis removed as well.UBUNTU_SNAPSHOTand the separateca-certificatesstep (only needed for the https snapshot) are gone.Reproducibility
The same as for
alma-8: a rebuild of the image can install newer package versions, and the installed versions are recorded in/etc/sil-kit-pkg-image-packages.txt. The packages stay reproducible, becauserelease/packages.jsonpins the images by digest.Tested
The Build Images run of this PR builds both Ubuntu images.
🤖 Generated with Claude Code