Build Error: Job failed with exit code: 1 (while creating a space at hugging Face)

Hi,

I have created and used spaces before and already have a few running, but since last night I keep on getting the same error while creating the space on the Hugging face. Can you please let me know what the problem is here? See the logs below.

build error

Job failed with exit code: 1

Build logs:

===== Build Queued at 2025-08-14 02:11:43 / Commit SHA: a95a69e =====

--> FROM docker.io/library/python:3.9-slim@sha256:369a16fc95ce13e4e1e1c76a5eaa88bd16e955dc82a55c2a69c3c25bb61dd590
DONE 1.0s

DONE 1.5s

DONE 2.1s

DONE 2.1s

--> WORKDIR /app
DONE 0.0s

--> RUN apt-get update && apt-get install -y     build-essential     curl     software-properties-common     git     && rm -rf /var/lib/apt/lists/*
Hit:1 http://deb.debian.org/debian trixie InRelease
Get:2 http://deb.debian.org/debian trixie-updates InRelease [47.1 kB]
Get:3 http://deb.debian.org/debian-security trixie-security InRelease [43.4 kB]
Get:4 http://deb.debian.org/debian trixie/main amd64 Packages [9668 kB]
Get:5 http://deb.debian.org/debian trixie-updates/main amd64 Packages [2432 B]
Get:6 http://deb.debian.org/debian-security trixie-security/main amd64 Packages [6808 B]
Fetched 9767 kB in 1s (11.9 MB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package software-properties-common

--> ERROR: process "/bin/sh -c apt-get update && apt-get install -y     build-essential     curl     software-properties-common     git     && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100

1 Like

Could it be Streamlit Space?
If so, you may need to delete one line from the default Dockerfile.

Hi John,

Thanks, the error happened while I was creating the space on the hugging face site getting the basic default CPU, memory and Storage which comes as a default for creating a space as well as selecting Docker and streamlit from the menu. Please note, at this point, I didn’t load my docker file, serialized object and the app.py file of my AI streamlit model yet from my google collab yet.

I usually upload my docker file, requirements file, saved model and app.py once a space is created to be placed in there. In other words, this happened when I was using hugging space GUI to create a space without moving any of my docker file or streamlit, Thanks.

1 Like

That’s probably a remnant of a bug that occurred in a large area of HF yesterday.:sweat_smile:
Specifically, deleting one line from Dockerfile should fix the problem.

1 Like

Sorry, If I’m asking a naive question, but I’m doing this at the GUI level of creating a Space on Hugging face, I don’t have access to Hugging face docker file or the console at this moment. I usually create a space and then upload my docker and run streamlet on it. So, from Hugging face GUI for space, I select Docker and Streamlet, pick the default infra for a free tier with public access. It has always worked to create a space for me as after that i upload my docker file, requirement file and saved model, but, I’m not even getting the space with free Tier up and running to try to move and push my container and saved model. The error I’m getting is getting the space created, I hope I’m clear as I have access to my Docker file and others but not the one on the Hugging face space? I was able to create the same space till day before yesterday, but not anymore? Thanks.

1 Like

I was able to create the same space till day before yesterday, but not anymore?

Yes. After the bug appeared, that part has not been fixed yet, so it is currently unavailable.
Well, it happens sometimes.
Source code and other files can be edited from the GUI, so if you know where to fix it, it is quicker to just edit it. I’ll ping just in case. @hysts

1 Like

The error started appearing because the base Docker image python:3.9-slim was updated on Docker Hub. It used to be based on Debian Bookworm, but it’s now based on Debian Trixie. Apparently, some packages, such as libgl1-mesa-glx and software-properties-common, have been removed from the apt repository in Debian Trixie, which has caused disruptions in some Spaces.
If you don’t use software-properties-common in your Space, you can simply delete that line from your Dockerfile.
I think we should update the Dockerfile for streamlit, and I’ll report the issue internally.

1 Like

Thank you.

BTW, I underestimated the situation. I thought that some packages would be removed in the update, but I didn’t expect there to be so many…

Well, once the HF templates are fixed, it would be quicker to deal with the individual spaces one by one.:sweat_smile:
Debian 13 “trixie” released

while over 8,840 packages have been removed as obsolete

Edit:

Removed pacekges list

1 Like

The Docker template for Streamlit Spaces is available here and is maintained by members of the Streamlit organization. Therefore, it would be best to submit issues or PRs directly to them.

2 Likes

Got it. I’ve committed the PR for now.

2 Likes