Coder Social home page Coder Social logo

Comments (9)

tianon avatar tianon commented on August 20, 2024

This looks like it's due to an out-of-date Apt cache, probably sitting in a Docker cache from a previous line. You should make a habit of using RUN lines like RUN apt-get update && apt-get install -y package package to make sure that the Apt cache is always refreshed when and where it needs to be.

from docker-brew-ubuntu-core.

aknuds1 avatar aknuds1 commented on August 20, 2024

Yeah, I've started prefixing my RUN apt-get's with apt-get update, but in this case APT was updated only minutes prior to the failing installation (before getting cached by Docker). Isn't that a bit strange?

from docker-brew-ubuntu-core.

tianon avatar tianon commented on August 20, 2024

A little bit, but not really all that unusual. The default mirror is http://archive.ubuntu.com, which is actually a round-robin of a bunch of mirrors, so you might have just happened to hit two mirrors that were slightly out of sync by an odd chance of luck, too.

from docker-brew-ubuntu-core.

aknuds1 avatar aknuds1 commented on August 20, 2024

OK, thanks!

from docker-brew-ubuntu-core.

tianon avatar tianon commented on August 20, 2024

So just to confirm, if you try the build again, does it succeed?

from docker-brew-ubuntu-core.

aknuds1 avatar aknuds1 commented on August 20, 2024

Well, the error was always intermittent anyway. But hopefully it's solved after switching to your recommended approach.

from docker-brew-ubuntu-core.

tianon avatar tianon commented on August 20, 2024

Ah, I see. I do get intermittent Apt errors myself, but they are usually due to managing to get two different mirrors crossed via the round-robin, which I think is the issue here, so I think we're OK to close this. Do you agree?

from docker-brew-ubuntu-core.

aknuds1 avatar aknuds1 commented on August 20, 2024

Go ahead.

from docker-brew-ubuntu-core.

tianon avatar tianon commented on August 20, 2024

Cool, thanks. :)

from docker-brew-ubuntu-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.