-
Notifications
You must be signed in to change notification settings - Fork 37
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 #1
Comments
So the weird thing is I've built the image numerous times now for testing and can't say the builds have ever tripped up in the early stages. I've had something similar like this recently where I wasn't able to build an image and had to run docker system prune to clear what I'm assuming were some cached images that was stopping my builds. So might be worth trying that if you're not worried about removing unused images/containers |
yeah that's a really strange place for it to fail, and with an error that seems to indicate a problem with apt itself in the Ubuntu image? I honestly don't know how this happened. |
Hello, came across same issue, here is quick fix, add it before apt-update in Dockerfile RUN sed -i -e 's/^APT/# APT/' -e 's/^DPkg/# DPkg/' Or pin to ubuntu:20.04 by changing to FROM ubuntu:20.04 To fix permanently, you need to upgrade Docker Engine https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository Related issue moby/moby#42681 |
The text was updated successfully, but these errors were encountered: