Space Build Error: 'libgl1-mesa-glx' not found despite no Dockerfile

I am experiencing a persistent build error on my Space and I am completely stuck.

Link to my Space: https://huggingface.co/spaces/samceo07/AATM-CHAT-BoT

The Problem: The build fails with the error E: Package 'libgl1-mesa-glx' has no installation candidate. The build log shows it is trying to run a long apt-get install command from a Dockerfile.
What I Have Tried:

  • I have confirmed multiple times that there is no Dockerfile in my repository’s main branch.

  • I have added a packages.apt file with the correct dependencies (including libgl1).

  • I have tried the “Factory Reset” option in the Space settings multiple times.

Despite all this, the build log continues to show that an old configuration with a Dockerfile is being used. It seems like the build environment is stuck on a bad cache that I cannot clear.

Could you please look at the internal configuration for my Space and help me resolve this?

Thank you!

2 Likes

In short, it’s probably a bug in Hugging Face that occurred during an upgrade.
I think it will be fixed soon, but as a workaround for now, it seems best to use a Python image other than 3.10.

1 Like

thank you :))

1 Like

Hi, samceo07

My Space keeps building with an old Docker configuration even though there is no Dockerfile in my repository anymore. I already:

  • Added a correct packages.apt file (libgl1 instead of libgl1-mesa-glx).

  • Tried Factory Reset multiple times.

  • Confirmed my default branch is main.

But the build logs still show the old apt-get install from a Dockerfile. Could you please check if my Space is still linked to a Docker runtime and switch it to “Gradio” so it rebuilds fresh?

Thanks!
https://zaytrics.com