Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker build fails with ubuntu 22.04 #416

Open
tiansiyuan opened this issue Jun 1, 2024 · 0 comments
Open

docker build fails with ubuntu 22.04 #416

tiansiyuan opened this issue Jun 1, 2024 · 0 comments

Comments

@tiansiyuan
Copy link

Hi,

I tried with the Dockerfile under jupyter-310/. If I use FROM ubuntu:22.04, the build failed and I got the following messages:

Sending build context to Docker daemon  4.096kB
Step 1/31 : FROM ubuntu:22.04
 ---> 52882761a72a
Step 2/31 : ENV NB_USER jovyan
 ---> Using cache
 ---> c3befaf9a9e5
Step 3/31 : ENV NB_UID 1000
 ---> Using cache
 ---> 4a5980b9abb2
Step 4/31 : ENV NB_PREFIX /
 ---> Using cache
 ---> b3a048a06cda
Step 5/31 : ENV HOME /home/$NB_USER
 ---> Using cache
 ---> fc786ca8cb59
Step 6/31 : ENV SHELL /bin/bash
 ---> Using cache
 ---> 71b21060563c
Step 7/31 : ARG S6_VERSION=v3.1.1.2
 ---> Using cache
 ---> d7bfe48b20f6
Step 8/31 : ARG PYTHON_VERSION=3.10
 ---> Using cache
 ---> 2305749c47b5
Step 9/31 : ARG PIP_VERSION=23
 ---> Using cache
 ---> 3ec89655cfdb
Step 10/31 : SHELL ["/bin/bash", "-c"]
 ---> Using cache
 ---> 1f6b1c9bf6b1
Step 11/31 : RUN export DEBIAN_FRONTEND=noninteractive   && apt-get -yq update   && apt-get -yq upgrade   && apt-get -yq install     apt-transport-https     bash     build-essential     bzip2     ca-certificates     curl     gcc     gfortran     git     locales     lsb-release     nodejs     npm     pkg-config     protobuf-compiler     python3     python3-pip     software-properties-common     tzdata     unzip     vim     wget     sudo     xz-utils     zip   && apt-get clean   && rm -rf /var/lib/apt/lists/*
 ---> Running in fd1576efe358
Get:1 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB]
Get:3 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [44.7 kB]
Get:4 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]
Get:5 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [1858 kB]
Get:6 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [127 kB]
Get:7 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [266 kB]
Get:8 http://archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages [164 kB]
Get:9 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages [1792 kB]
Get:10 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [1084 kB]
Get:11 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [2395 kB]
Get:12 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [17.5 MB]
Get:13 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1377 kB]
Get:14 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [2468 kB]
Get:15 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [2129 kB]
Get:16 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [51.1 kB]
Get:17 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [81.0 kB]
Get:18 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [31.8 kB]
Fetched 31.9 MB in 5s (5862 kB/s)
Reading package lists...
E: Problem executing scripts APT::Update::Post-Invoke 'rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true'
E: Sub-process returned an error code
The command '/bin/bash -c export DEBIAN_FRONTEND=noninteractive   && apt-get -yq update   && apt-get -yq upgrade   && apt-get -yq install     apt-transport-https     bash     build-essential     bzip2     ca-certificates     curl     gcc     gfortran     git     locales     lsb-release     nodejs     npm     pkg-config     protobuf-compiler     python3     python3-pip     software-properties-common     tzdata     unzip     vim     wget     sudo     xz-utils     zip   && apt-get clean   && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100

The failed command is apt-get -yq update

If I change FROM ubuntu:22.04 to FROM ubuntu:20.04, then I don't have this failure.

I tried on an Ubuntu 20.04 machine.

Thanks,

Tian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant