arviz
arviz copied to clipboard
Error When Attempting to Build The Docker Image
Describe the bug
When running ./scripts/container.sh --build
, it emits error message
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.81kB 0.0s
=> [internal] load metadata for docker.io/conda/miniconda3:latest 0.6s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 141B 0.0s
=> CACHED [ 1/16] FROM docker.io/conda/miniconda3:latest@sha256:2141bfc4b60cc5eb332402207c80d884daa72fcefa48b50f 0.0s
=> [internal] load build context 0.1s
=> => transferring context: 28.62kB 0.0s
=> ERROR [ 2/16] RUN apt-get update && apt-get install -y git build-essential pandoc vim ffmpeg dos2unix lib 0.7s
------
> [ 2/16] RUN apt-get update && apt-get install -y git build-essential pandoc vim ffmpeg dos2unix libgtk-3-dev libdbus-glib-1-dev libxt-dev jags && rm -rf /var/lib/apt/lists/*:
0.318 Ign:1 http://security.debian.org/debian-security stretch/updates InRelease
0.327 Ign:2 http://deb.debian.org/debian stretch InRelease
0.335 Ign:3 http://security.debian.org/debian-security stretch/updates Release
0.345 Ign:4 http://deb.debian.org/debian stretch-updates InRelease
0.354 Ign:5 http://security.debian.org/debian-security stretch/updates/main all Packages
0.359 Ign:6 http://deb.debian.org/debian stretch Release
0.363 Ign:7 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
0.367 Ign:8 http://deb.debian.org/debian stretch-updates Release
0.372 Ign:5 http://security.debian.org/debian-security stretch/updates/main all Packages
0.374 Ign:9 http://deb.debian.org/debian stretch/main all Packages
0.381 Ign:7 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
0.384 Ign:10 http://deb.debian.org/debian stretch/main amd64 Packages
0.389 Ign:5 http://security.debian.org/debian-security stretch/updates/main all Packages
0.392 Ign:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages
0.400 Ign:7 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
0.402 Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages
0.411 Ign:9 http://deb.debian.org/debian stretch/main all Packages
0.414 Ign:5 http://security.debian.org/debian-security stretch/updates/main all Packages
0.421 Ign:10 http://deb.debian.org/debian stretch/main amd64 Packages
0.429 Ign:7 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
0.431 Ign:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages
0.437 Ign:5 http://security.debian.org/debian-security stretch/updates/main all Packages
0.439 Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages
0.458 Ign:9 http://deb.debian.org/debian stretch/main all Packages
0.458 Ign:7 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
0.481 Ign:10 http://deb.debian.org/debian stretch/main amd64 Packages
0.481 Ign:5 http://security.debian.org/debian-security stretch/updates/main all Packages
0.491 Ign:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages
0.491 Err:7 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
0.491 404 Not Found [IP: 151.101.66.132 80]
0.499 Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages
0.509 Ign:9 http://deb.debian.org/debian stretch/main all Packages
0.517 Ign:10 http://deb.debian.org/debian stretch/main amd64 Packages
0.525 Ign:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages
0.533 Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages
0.551 Ign:9 http://deb.debian.org/debian stretch/main all Packages
0.563 Ign:10 http://deb.debian.org/debian stretch/main amd64 Packages
0.573 Ign:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages
0.583 Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages
0.593 Ign:9 http://deb.debian.org/debian stretch/main all Packages
0.606 Err:10 http://deb.debian.org/debian stretch/main amd64 Packages
0.606 404 Not Found
0.614 Err:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages
0.614 404 Not Found
0.622 Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages
0.626 Reading package lists...
0.631 W: The repository 'http://security.debian.org/debian-security stretch/updates Release' does not have a Release file.
0.631 W: The repository 'http://deb.debian.org/debian stretch Release' does not have a Release file.
0.631 W: The repository 'http://deb.debian.org/debian stretch-updates Release' does not have a Release file.
0.631 E: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/main/binary-amd64/Packages 404 Not Found [IP: 151.101.66.132 80]
0.631 E: Failed to fetch http://deb.debian.org/debian/dists/stretch/main/binary-amd64/Packages 404 Not Found
0.631 E: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/main/binary-amd64/Packages 404 Not Found
0.631 E: Some index files failed to download. They have been ignored, or old ones used instead.
------
Dockerfile:30
--------------------
29 | # Update container
30 | >>> RUN apt-get update && apt-get install -y git build-essential pandoc vim ffmpeg \
31 | >>> dos2unix libgtk-3-dev libdbus-glib-1-dev libxt-dev jags && rm -rf /var/lib/apt/lists/*
32 |
--------------------
ERROR: failed to solve: process "/bin/sh -c apt-get update && apt-get install -y git build-essential pandoc vim ffmpeg dos2unix libgtk-3-dev libdbus-glib-1-dev libxt-dev jags && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100
To Reproduce
- Clone the repository
- Clear cache by
./scripts/container.sh --clear-cache
- run
./scripts/container.sh --build
Expected behavior Install Stretch packages and build the image.
Update: Potential reason for this problem: https://unix.stackexchange.com/questions/743839/apt-get-update-failed-to-fetch-debian-amd64-packages-while-building-dockerfile-f
Build the Docker Image
Additional context Ubuntu 22.04.1 LTS, run on WSL