Skip to content

fix(docker/rocky): drop dnf update -y to avoid breaking the CUDA toolkit#2147

Merged
cbentejac merged 1 commit into
developfrom
fix/rocky-dnf-cuda-conflict
Jun 29, 2026
Merged

fix(docker/rocky): drop dnf update -y to avoid breaking the CUDA toolkit#2147
cbentejac merged 1 commit into
developfrom
fix/rocky-dnf-cuda-conflict

Conversation

@predat

@predat predat commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Problem

The Rocky deps image ends its system-package step with a blanket
dnf update -y. That upgrade pulls packages from the CUDA repo and now
breaks dependency resolution against the CUDA 12.1.1 base image:

package cccl-13-3-13.3.3.3.1 obsoletes cuda-cccl-12-1
 → cuda-cudart-devel-12-1 can no longer be installed
Error: cannot install the best update candidate for cuda-cudart-devel-12-1

NVIDIA published cccl-13.x (CUDA 13) in the repo; dnf update -y tries to
move CUDA packages to it, conflicting with the 12.1 toolkit that ships in the
base image. The build fails at this step (STEP 6/21).

Fix

Drop the blanket dnf update -y. The packages the build needs are already
installed explicitly via the dnf install lists just above, and the CUDA
toolkit from the base image is left untouched and consistent.

…olkit

The final `dnf update -y` in the deps image upgraded packages from the
CUDA repo, pulling cccl-13.3 which obsoletes cuda-cccl-12-1 and makes
cuda-cudart-devel-12-1 (from the 12.1.1 base image) uninstallable:

  package cccl-13-3 obsoletes cuda-cccl-12-1 provided by cuda-cccl-12-1
  cannot install the best update candidate for cuda-cudart-devel-12-1

The dependency build then fails at the system-package step. Drop the
blanket update so the CUDA toolkit shipped in the base image stays
consistent; the needed packages are already pinned via the explicit
dnf install lists above.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request modifies the docker/Dockerfile_rocky_deps file to remove the dnf update -y command from the package installation step. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@sonarqubecloud

Copy link
Copy Markdown

@cbentejac cbentejac added this to the 3.4.0 milestone Jun 29, 2026
@cbentejac cbentejac merged commit bf31a7a into develop Jun 29, 2026
8 checks passed
@cbentejac cbentejac deleted the fix/rocky-dnf-cuda-conflict branch June 29, 2026 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants