[CI] Build the torch-nightly image on Ubuntu 24.04 (#58204)

Andrey Talman committed Sep 22, 2026 at 17:15 UTC ecdd11d0e0a84d73d3c1348d4f37317c5140d32a
1 file changed +10 -1
.buildkite/image_build/image_build_torch_nightly.sh
+10 -1
@@ -49,7 +49,16 @@ echo "Image not found, proceeding with build..."
49 # Nightly CI uses CUDA 13.0 while regular CI stays on CUDA 12.9
50 NIGHTLY_CUDA_VERSION="13.0.2"
51 NIGHTLY_BUILD_BASE_IMAGE="pytorch/manylinux2_28-builder:cuda13.0-78e737ad29420ffc4800e677c51e2a852caf8359"
52 -NIGHTLY_FINAL_BASE_IMAGE="nvidia/cuda:${NIGHTLY_CUDA_VERSION}-base-ubuntu22.04"
52 +# Must track ARG UBUNTU_VERSION in docker/Dockerfile. The nightly lane exists to
53 +# run the normal pipeline against nightly torch, so it has to differ from the
54 +# regular image in torch only -- not in the OS underneath it. This was pinned to
55 +# 22.04 while everything else moved to 24.04, and the runtime dependency list in
56 +# tools/install_snapshot_runtime.sh is 24.04-only (libgnutls30t64 is the 64-bit
57 +# time_t rename and does not exist on jammy), so the nightly build failed with
58 +# "E: Unable to locate package libgnutls30t64" while regular CI stayed green on
59 +# a cached layer.
60 +NIGHTLY_UBUNTU_VERSION="24.04"
61 +NIGHTLY_FINAL_BASE_IMAGE="nvidia/cuda:${NIGHTLY_CUDA_VERSION}-base-ubuntu${NIGHTLY_UBUNTU_VERSION}"
62
63 echo "--- :docker: Building torch nightly image (CUDA ${NIGHTLY_CUDA_VERSION})"
64 docker buildx build --file docker/Dockerfile \