question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot build an image with `buildpack-deps:bionic`

See original GitHub issue

It’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:closed
  • Created 10 months ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
manicscommented, Dec 2, 2022

There are several discussions but although it’s an easy code change it’s a big breaking change:

1reaction
manicscommented, Dec 1, 2022

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found