From 3f50cbf91cf18e913b2547745dc19b87f79724b4 Mon Sep 17 00:00:00 2001 From: clsferguson <48876201+clsferguson@users.noreply.github.com> Date: Mon, 22 Sep 2025 09:12:45 -0600 Subject: [PATCH] fix(docker): skip system package upgrades to avoid Debian conflicts Remove pip/setuptools/wheel upgrade to prevent "Cannot uninstall wheel, RECORD file not found" error when attempting to upgrade system packages installed via apt. Ubuntu 24.04 CUDA images include system-managed Python packages that lack pip RECORD files, causing upgrade failures. Since the pre-installed versions are sufficient for our dependencies, we skip upgrading them and focus on installing only the required application packages. This approach: - Avoids Debian package management conflicts - Reduces Docker build complexity - Maintains functionality while improving reliability - Eliminates pip uninstall errors for system packages Resolves error: "Cannot uninstall wheel 0.42.0, RECORD file not found" --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1db6c57c5..d529ee55d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,8 +47,8 @@ WORKDIR /app/ComfyUI COPY requirements.txt ./ # Core Python deps (torch CUDA 12.8, ComfyUI reqs), media/NVML libs -RUN python -m pip install --upgrade pip setuptools wheel \ - && python -m pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu128 \ +# Skip upgrading system pip/setuptools/wheel to avoid Debian package conflicts +RUN python -m pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu128 \ && python -m pip install triton \ && python -m pip install -r requirements.txt \ && python -m pip install imageio-ffmpeg "av>=14.2" nvidia-ml-py