using apt-get install in old versions

pr flag

Until last week, i could use a Dockerfile that started like:

FROM ubuntu:16.04

RUN apt-get update; 
RUN apt-get install -y git make g++ gcc wget re2c;


But today i ended up with lots of messages like:

#0 2.320 E: Failed to fetch  Unable to connect to [IP: 80]

What is the best way to see if im doing something wrong or if these repos were actually deactivated in the past few days?

cn flag
That is an address to a file. So, you can try downloading that or going to `` in a web browser and searching for that file. It could be that you just have a temporary Internet problem preventing you to access that site...
Marco Montevechi Filho avatar
pr flag
Thanks, indeed i had some kind of wird internet connection that left other web applications run but broke my apt-get. Should i close this question?
user535733 avatar
cn flag
You should answer your own question. Include your troubleshooting to help future folk who have the same problem.
cn flag
Good to hear you've solved your problem! And yes, you should close the question. Since you figured out the problem yourself, feel free to answer it and accept it. While I did give you a suggestion, I think it's safe to say that you were the one that solved your problem...I just nudged you in a direction.
pr flag

As @Ray noted in the comments, the online repository mentioned in the error message was still accessible via browser, so i could reach for it in there.

I had some weird network connection problem which didn't let me access the repo from inside my container. Though i don't know what changed to allow me to access the repo, checking that it was accessible via browser allowed me to understand that the problem was with my network connection, not the repo.

I sit in a Tesla and translated this thread with Ai:


Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.