Cannot build an image with `buildpack-deps:bionic`
See original GitHub issueIt’s not possible to build an image with repo2docker due to the missing package repositories for ubuntu/bionic.
Bug description
This line causes errors while attempting to install packages with apt-get
while building an image with repo2docker
:
https://github.com/jupyterhub/repo2docker/blob/b6098c02f315a37d690a0c538973de53dd0631a3/repo2docker/buildpacks/base.py#L16
Expected behavior
The CI build should succeed.
Actual behavior
...
---> 8078583bc546
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/*
---> Running in c73d5a674d8c
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/restricted/binary-amd64/Packages 403 Forbidden [IP: 185.125.190.39 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/universe/binary-amd64/Packages 403 Forbidden [IP: 185.125.190.39 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/main/binary-amd64/Packages 403 Forbidden [IP: 185.125.190.39 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
Removing intermediate container c73d5a674d8c
The command '/bin/sh -c 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/*' returned a non-zero code: 100
How to reproduce
See the CI status at https://github.com/NSLS-II/scipy-binder/pull/57.
Your personal set up
CI config of https://github.com/NSLS-II/scipy-binder.
Issue Analytics
- State:
- Created 10 months ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Cannot use with Podman when short-name resolution is ...
STEP 1/52: FROM buildpack-deps:bionic Error: error creating build container: short-name resolution enforced but cannot prompt without a TTY.
Read more >amd64/buildpack-deps - Docker Image
A collection of common build dependencies used for installing various modules, e.g., gems.
Read more >building in docker using buildpack-deps, but dependencies ...
I'm trying to write a Dockerfile to build Kaldi (an open source speech recognition system) based on the "buildpack-deps:jessie-scm" image.
Read more >Managing Image Resources and Builds - VMware Docs
The buildpacks contain the dependencies needed for these builds and you can add buildpack configuration to Tanzu Build Service image resources.
Read more >Dockerize Node.js apps with Buildpacks - LogRocket Blog
Learn how using Buildpacks in Node.js allow you to efficiently create Docker images with no additional configuration.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
There are several discussions but although it’s an easy code change it’s a big breaking change:
Does this error occur all the time or does it fix itself after a few hours?
Do you see the same error if you install and run repo2docker locally?