Skip to content

[Bug]: Package 'nvidia-cuda-toolkit' has no installation candidate #2020

@achepukov

Description

@achepukov

crawl4ai version

main

Expected Behavior

docker compose build runs with no error when env GPU_ENABLED = true

Current Behavior

docker compose build failed to build when env GPU_ENABLED = true

Is this reproducible?

Yes

Inputs Causing the Bug

Steps to Reproduce

1. Specify in `.env` `ENABLE_GPU = true`
2. run `docker compose build`

Code snippets

OS

docker

Python version

3.12

Browser

No response

Browser version

No response

Error logs & Screenshots (if applicable)

This is the exact error when trying to buili the docker image:

failed to solve: process "/bin/sh -c if [ \"$ENABLE_GPU\" = \"true\" ] && [ \"$TARGETARCH\" = \"amd64\" ] ; then     apt-get update && apt-get install -y --no-install-recommends     nvidia-cuda-toolkit     && apt-get clean     && rm -rf /var/lib/apt/lists/* ; else     echo \"Skipping NVIDIA CUDA Toolkit installation (unsupported platform or GPU disabled)\"; fi" did not complete successfully: exit code: 100

And this is what is got when trying to install toolkit in the container directly

    nvidia-cuda-toolkit
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://deb.debian.org/debian bookworm-updates InRelease             
Hit:3 http://deb.debian.org/debian-security bookworm-security InRelease   
Hit:4 https://packages.redis.io/deb bookworm InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package nvidia-cuda-toolkit is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'nvidia-cuda-toolkit' has no installation candidate```

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 BugSomething isn't working🩺 Needs TriageNeeds attention of maintainers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions