Error installing dependencies in Streamlit Cloud (ACCEPT_EULA error while processing apt-get)

I am getting the following error when trying to start my app on Streamlit Cloud:

sudo: sorry, you are not allowed to set the following environment variables: ACCEPT_EULA

This happens after I added zlib1g-dev and libjpeg-dev to my packages.txt. I have tried removing them, but the error persists.

Does anyone have a solution or advice on how I can fix this?