Skip to content

[SPARK-XXXXX][3.5][INFRA] Run apt-get update before installing dependencies#55740

Draft
sarutak wants to merge 1 commit intoapache:branch-3.5from
sarutak:fix-apt-cache-3.5
Draft

[SPARK-XXXXX][3.5][INFRA] Run apt-get update before installing dependencies#55740
sarutak wants to merge 1 commit intoapache:branch-3.5from
sarutak:fix-apt-cache-3.5

Conversation

@sarutak
Copy link
Copy Markdown
Member

@sarutak sarutak commented May 7, 2026

What changes were proposed in this pull request?

This PR adds apt-get update before apt-get install for dev libraries in the CI Dockerfile.

Why are the changes needed?

The CI Dockerfile for branch-3.5 has apt-get install for dev dependencies (libtiff5-dev, libharfbuzz-dev, etc.) in a separate RUN layer from the earlier apt-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

### 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.
@sarutak sarutak marked this pull request as draft May 7, 2026 15:56
@sarutak sarutak changed the title [SPARK-56525][INFRA] Run apt-get update before installing R dependencies [SPARK-XXXXX][INFRA] Run apt-get update before installing R dependencies May 7, 2026
@sarutak sarutak changed the title [SPARK-XXXXX][INFRA] Run apt-get update before installing R dependencies [SPARK-XXXXX][3.5][INFRA] Run apt-get update before installing R dependencies May 7, 2026
@sarutak sarutak changed the title [SPARK-XXXXX][3.5][INFRA] Run apt-get update before installing R dependencies [SPARK-XXXXX][3.5][INFRA] Run apt-get update before installing dependencies May 7, 2026
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.

1 participant