jupyterhub / repo2docker

Turn repositories into Jupyter-enabled Docker images

Home Page:https://repo2docker.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed build when using apt.txt to install ffmpeg

loganbvh opened this issue · comments

Bug description

Recently, after making no changes to the environment, my repo has failed to build on mybinder.org. The error happens when trying to install ffmpeg based on an apt.txt file. It looks like the primary error is: The repository 'http://security.ubuntu.com/ubuntu bionic-security InRelease' is not signed.

Expected behaviour

Container builds without error

Actual behaviour

Waiting for build to start...
Picked Git content provider.
Cloning into '/tmp/repo2dockertf0h9y6w'...
HEAD is now at f372b01 Update device.py (#13)
Building conda environment for python=3.10
Using PythonBuildPack builder
Building conda environment for python=3.10
Building conda environment for python=3.10
Step 1/52 : FROM buildpack-deps:bionic
 ---> 38c3a7e0952a
Step 2/52 : ENV DEBIAN_FRONTEND=noninteractive
 ---> Using cache
 ---> 702d5c98b3ad
Step 3/52 : RUN apt-get -qq update &&     apt-get -qq install --yes --no-install-recommends locales > /dev/null &&     apt-get -qq purge &&     apt-get -qq clean &&     rm -rf /var/lib/apt/lists/*
 ---> Using cache
 ---> 43ea0c4b4324
Step 4/52 : RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen &&     locale-gen
 ---> Using cache
 ---> 41fc1fdc8b52
Step 5/52 : ENV LC_ALL=en_US.UTF-8     LANG=en_US.UTF-8     LANGUAGE=en_US.UTF-8
 ---> Using cache
 ---> cb8f5a52a6e6
Step 6/52 : ENV SHELL=/bin/bash
 ---> Using cache
 ---> db6c9308e8ad
Step 7/52 : ARG NB_USER
 ---> Using cache
 ---> 67c41240835d
Step 8/52 : ARG NB_UID
 ---> Using cache
 ---> ade0a2de637e
Step 9/52 : ENV USER=${NB_USER}     HOME=/home/${NB_USER}
 ---> Using cache
 ---> 6b8c04153346
Step 10/52 : RUN groupadd         --gid ${NB_UID}         ${NB_USER} &&     useradd         --comment "Default user"         --create-home         --gid ${NB_UID}         --no-log-init         --shell /bin/bash         --uid ${NB_UID}         ${NB_USER}
 ---> Using cache
 ---> cf2604f7aa17
Step 11/52 : RUN apt-get -qq update &&     apt-get -qq install --yes --no-install-recommends        less        unzip        > /dev/null &&     apt-get -qq purge &&     apt-get -qq clean &&     rm -rf /var/lib/apt/lists/*
 ---> Using cache
 ---> 0f2936034237
Step 12/52 : EXPOSE 8888
 ---> Using cache
 ---> 3d92cb207cae
Step 13/52 : ENV APP_BASE=/srv
 ---> Using cache
 ---> 1935ab462941
Step 14/52 : ENV CONDA_DIR=${APP_BASE}/conda
 ---> Using cache
 ---> e0f749c80ff5
Step 15/52 : ENV NB_PYTHON_PREFIX=${CONDA_DIR}/envs/notebook
 ---> Using cache
 ---> 7dd611c865da
Step 16/52 : ENV NPM_DIR=${APP_BASE}/npm
 ---> Using cache
 ---> 4b3553bd3fa9
Step 17/52 : ENV NPM_CONFIG_GLOBALCONFIG=${NPM_DIR}/npmrc
 ---> Using cache
 ---> 49c64d46ba9e
Step 18/52 : ENV NB_ENVIRONMENT_FILE=/tmp/env/environment.lock
 ---> Using cache
 ---> f2690ba403ec
Step 19/52 : ENV MAMBA_ROOT_PREFIX=${CONDA_DIR}
 ---> Using cache
 ---> 4d7550028381
Step 20/52 : ENV MAMBA_EXE=${CONDA_DIR}/bin/mamba
 ---> Using cache
 ---> bac69dbb55a2
Step 21/52 : ENV CONDA_PLATFORM=linux-64
 ---> Using cache
 ---> 249ae3c2c764
Step 22/52 : ENV KERNEL_PYTHON_PREFIX=${NB_PYTHON_PREFIX}
 ---> Using cache
 ---> ed0af0202265
Step 23/52 : ENV PATH=${NB_PYTHON_PREFIX}/bin:${CONDA_DIR}/bin:${NPM_DIR}/bin:${PATH}
 ---> Using cache
 ---> 69645f8e4b05
Step 24/52 : COPY --chown=1000:1000 build_script_files/-2fusr-2flib-2fpython3-2e10-2fsite-2dpackages-2frepo2docker-2fbuildpacks-2fconda-2factivate-2dconda-2esh-44e764 /etc/profile.d/activate-conda.sh
 ---> Using cache
 ---> 0e35de466b4f
Step 25/52 : COPY --chown=1000:1000 build_script_files/-2fusr-2flib-2fpython3-2e10-2fsite-2dpackages-2frepo2docker-2fbuildpacks-2fconda-2fenvironment-2epy-2d3-2e10-2dlinux-2d64-2elock-388e0b /tmp/env/environment.lock
 ---> Using cache
 ---> fe5354e8dfc8
Step 26/52 : COPY --chown=1000:1000 build_script_files/-2fusr-2flib-2fpython3-2e10-2fsite-2dpackages-2frepo2docker-2fbuildpacks-2fconda-2finstall-2dbase-2denv-2ebash-e5509f /tmp/install-base-env.bash
 ---> Using cache
 ---> f8426dfff61d
Step 27/52 : RUN TIMEFORMAT='time: %3R' bash -c 'time /tmp/install-base-env.bash' && rm -rf /tmp/install-base-env.bash /tmp/env
 ---> Using cache
 ---> 4accd3df0435
Step 28/52 : RUN mkdir -p ${NPM_DIR} && chown -R ${NB_USER}:${NB_USER} ${NPM_DIR}
 ---> Using cache
 ---> d7efa299e9d8
Step 29/52 : USER root
 ---> Using cache
 ---> 5188b523a76f
Step 30/52 : ARG REPO_DIR=${HOME}
 ---> Using cache
 ---> b1c84ff8e3c0
Step 31/52 : ENV REPO_DIR=${REPO_DIR}
 ---> Using cache
 ---> dc00580b4998
Step 32/52 : RUN if [ ! -d "${REPO_DIR}" ]; then         /usr/bin/install -o ${NB_USER} -g ${NB_USER} -d "${REPO_DIR}";     fi
 ---> Using cache
 ---> c419c456b7f2
Step 33/52 : WORKDIR ${REPO_DIR}
 ---> Using cache
 ---> cc2048152ade
Step 34/52 : RUN chown ${NB_USER}:${NB_USER} ${REPO_DIR}
 ---> Using cache
 ---> 542a868346c1
Step 35/52 : ENV PATH=${HOME}/.local/bin:${REPO_DIR}/.local/bin:${PATH}
 ---> Using cache
 ---> 4d07ef83397d
Step 36/52 : ENV CONDA_DEFAULT_ENV=${KERNEL_PYTHON_PREFIX}
 ---> Using cache
 ---> f4d3a0f5ab5f
Step 37/52 : COPY --chown=1000:1000 src/requirements.txt ${REPO_DIR}/requirements.txt
 ---> Using cache
 ---> 3f7eb24a7a26
Step 38/52 : RUN apt-get -qq update && apt-get install --yes --no-install-recommends ffmpeg && apt-get -qq purge && apt-get -qq clean && rm -rf /var/lib/apt/lists/*
 ---> Running in c420e52345de
�[91mW: GPG error: http://archive.ubuntu.com/ubuntu bionic InRelease: At least one invalid signature was encountered.
E: The repository 'http://archive.ubuntu.com/ubuntu bionic InRelease' is not signed.
W: GPG error: http://archive.ubuntu.com/ubuntu bionic-updates InRelease: At least one invalid signature was encountered.
E: The repository 'http://archive.ubuntu.com/ubuntu bionic-updates InRelease' is not signed.
W: GPG error: http://archive.ubuntu.com/ubuntu bionic-backports InRelease: At least one invalid signature was encountered.
E: The repository 'http://archive.ubuntu.com/ubuntu bionic-backports InRelease' is not signed.
W: GPG error: http://security.ubuntu.com/ubuntu bionic-security InRelease: At least one invalid signature was encountered.
E: The repository 'http://security.ubuntu.com/ubuntu bionic-security InRelease' is not signed.
�[0mRemoving intermediate container c420e52345de
The command '/bin/sh -c apt-get -qq update && apt-get install --yes --no-install-recommends ffmpeg && apt-get -qq purge && apt-get -qq clean && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100

How to reproduce

Click https://mybinder.org/v2/gh/loganbvh/py-tdgl/HEAD

Your personal set up

mybinder.org

Full environment

Contents of runtime.txt: python-3.10
Contents of apt.txt: ffmpeg
Contents of requirements.txt:

cloudpickle
h5py
joblib
jupyter
matplotlib
meshpy
numpy
pint
pytest
pytest-cov
scipy
shapely
tqdm

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

This was probably because the request was routed to the GESIS cluster and we had our disk full with docker images, I have cleaned it up. This should work now.

Great, thank you!