[SPARK-XXXXX][3.5][INFRA] Run apt-get update before installing dependencies#55740
Draft
sarutak wants to merge 1 commit intoapache:branch-3.5from
Draft
[SPARK-XXXXX][3.5][INFRA] Run apt-get update before installing dependencies#55740sarutak wants to merge 1 commit intoapache:branch-3.5from
sarutak wants to merge 1 commit intoapache:branch-3.5from
Conversation
### What changes were proposed in this pull request? Add `apt-get update` before `apt-get install` for R-related dev libraries to avoid stale package index causing 404 errors. ### Why are the changes needed? The `apt-get install` for R dev dependencies (libtiff5-dev, libharfbuzz-dev, etc.) is in a separate RUN layer from the earlier `apt-get update`, so when the package index becomes stale (packages are superseded on the Ubuntu archive), the install fails with 404. ### Does this PR introduce *any* user-facing change? No. ### How was this patch tested? CI. ### Was this patch authored or co-authored using generative AI tooling? No.
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.
What changes were proposed in this pull request?
This PR adds
apt-get updatebeforeapt-get installfor dev libraries in the CI Dockerfile.Why are the changes needed?
The CI Dockerfile for branch-3.5 has
apt-get installfor dev dependencies (libtiff5-dev,libharfbuzz-dev, etc.) in a separateRUNlayer from the earlierapt-get update. When packages are superseded on the Ubuntu 20.04 archive, the cached package index becomes stale and the install fails with 404 errors:https://github.com/apache/spark/actions/runs/25373567724/job/74403015951
Does this PR introduce any user-facing change?
No.
How was this patch tested?
GA.
Was this patch authored or co-authored using generative AI tooling?
Kiro CLI / Opus 4.6