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

Cannot build an image with buildpack-deps:bionic #1221

Closed
mrakitin opened this issue Dec 1, 2022 · 6 comments
Closed

Cannot build an image with buildpack-deps:bionic #1221

mrakitin opened this issue Dec 1, 2022 · 6 comments

Comments

@mrakitin
Copy link
Contributor

mrakitin commented Dec 1, 2022

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:

FROM buildpack-deps:bionic

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 NSLS-II/scipy-binder#57.

Your personal set up

CI config of https://github.com/NSLS-II/scipy-binder.

@welcome
Copy link

welcome bot commented Dec 1, 2022

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! 🎉

@mrakitin
Copy link
Contributor Author

mrakitin commented Dec 1, 2022

@yuvipanda, should it be here or at https://github.com/jupyterhub/repo2docker-action?

@manics
Copy link
Member

manics commented 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?

@mrakitin
Copy link
Contributor Author

mrakitin commented Dec 1, 2022

Thanks for your reply, @manics! Indeed, looks like the issue was transient and disappeared after I restarted the CI job a couple of hours later. False alarm. Local builds passed that failing step.

It's probably still worth considering a newer ubuntu tag as bionic will be EOL pretty soon. Are there plans to use a newer base image?

@manics
Copy link
Member

manics commented Dec 2, 2022

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

@manics manics closed this as completed Dec 2, 2022
@mrakitin
Copy link
Contributor Author

mrakitin commented Dec 2, 2022

Thanks for the insights, @manics!

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

2 participants