<div dir="ltr"><div>This is probably not your problem, but fwiw:</div><div><br></div><div>On a corporate network with some firewalls and such, We ran into this recently in docker containers... The main linux host can access the repositories just fine, and the docker networking looks completely normal, even the DNS resolves fine, but it fails to connect to <a href="http://archive.canonical.com">archive.canonical.com</a>.  no repositories, means we can't install anything, so we can't diagnose what is going on, because the image is just base ubuntu (that one is supposed to add packages to.)</div><div>Here is a sample Dockerfile:</div><div><br></div><div>FROM ubuntu:focal<br>RUN apt-get update && apt-get upgrade && sleep infinity<br><br></div><div>That's it, it gives the same could not connect to <a href="http://archive.ubuntu.com:80">archive.ubuntu.com:80</a> (but gets to <a href="http://security.canonical.com">security.canonical.com</a> just fine...)</div><div>This is on an ubuntu bionic real host.  We're in Canada, and a work-around was discovered:</div><div><br></div><div>FROM ubuntu:bionic<br>RUN sed -i 's/archive/ca.archive/g' /etc/apt/sources.list && apt-get update && apt-get upgrade<br></div><div><br></div><div>explicitly putting the canadian archive in there fixes the problem.  The cause seems to be some security</div><div>device on the corporate gateway, because when I do it outside our corporate network, it works fine.</div><div>Then I noticed that the enclosing host goes to <a href="http://us.archive.canonical.com">us.archive.canonical.com</a> and not <a href="http://archive.com">archive.com</a> ... so it seems</div><div>messed up on our corporate network. but... Can anyone explain the reason why this would fail?</div><div>I don't understand the mechanism.</div><div><br></div><div>Thanks.</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Nov 20, 2021 at 8:30 AM Colin Law <<a href="mailto:clanlaw@gmail.com">clanlaw@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sat, 20 Nov 2021 at 13:06, Noah <<a href="mailto:noah-list@enabled.com" target="_blank">noah-list@enabled.com</a>> wrote:<br>
><br>
><br>
> Hi,<br>
><br>
> It'd be wonderful to get a better understanding of a good solution please.<br>
><br>
> Apt-get update timing out.  Are the archive hosts blocking port 80?<br>
><br>
> sudo apt-get update<br>
> Err:1 <a href="http://archive.ubuntu.com/ubuntu" rel="noreferrer" target="_blank">http://archive.ubuntu.com/ubuntu</a> focal InRelease<br>
>    Could not connect to <a href="http://archive.ubuntu.com:80" rel="noreferrer" target="_blank">archive.ubuntu.com:80</a> (91.189.88.152),<br>
<br>
Is this a permanent or intermittent problem?<br>
<br>
What do you see in a browser if you browse to<br>
<a href="http://archive.ubuntu.com/ubuntu" rel="noreferrer" target="_blank">http://archive.ubuntu.com/ubuntu</a> on the failing machine.  Have you got<br>
multiple machines at your site?  If so are you seeing that on all of<br>
them?<br>
<br>
What do you see if you ping <a href="http://archive.ubuntu.com" rel="noreferrer" target="_blank">archive.ubuntu.com</a>?<br>
<br>
Where in the world are you?  There may be a better mirror you could use.<br>
<br>
Colin<br>
<br>
-- <br>
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com" target="_blank">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
</blockquote></div>