riken
February 6, 2023, 2:09pm
1
This happens when setting up twingate in github action via twingate github action template.
Here is the error,
Get:1 https://packages.twingate.com/apt twingate 1.0.77+70318 [14.7 MB]
Ign:2 http://azure.archive.ubuntu.com/ubuntu jammy/main amd64 libnl-route-3-200 amd64 3.5.0-0.1
Ign:2 http://azure.archive.ubuntu.com/ubuntu jammy/main amd64 libnl-route-3-200 amd64 3.5.0-0.1
Ign:2 http://azure.archive.ubuntu.com/ubuntu jammy/main amd64 libnl-route-3-200 amd64 3.5.0-0.1
Err:2 http://azure.archive.ubuntu.com/ubuntu jammy/main amd64 libnl-route-3-200 amd64 3.5.0-0.1
Could not connect to azure.archive.ubuntu.com:80 (20.106.104.242), connection timed out
Fetched 14.7 MB in 37s (395 kB/s)
E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/libn/libnl3/libnl-route-3-200_3.5.0-0.1_amd64.deb Could not connect to azure.archive.ubuntu.com:80 (20.106.104.242), connection timed out
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Bren
February 8, 2023, 11:55am
2
Hi @riken ,
did this get resolved for you? We heard of similar temporary reports that seemed to have been resolved since…
Jason
February 8, 2023, 1:15pm
3
So sorry about this! You can add some retries if you want to edit the script. Perhaps that is a good suggestion to make if you find it makes the process more reliable?
This is a common issue with Ubuntu and something we (as a community) have been complaining about for a while. I run everything in Ubuntu and see this with a lot of automatic (scheduled) updates as well as manual wgets etc.
Here is a thread on the topic.
https://social.msdn.microsoft.com/Forums/en-US/3261cd34-ba8c-48c6-ba41-66ee3ff4bbf4/unable-to-connect-to-azurearchiveubuntucomhttp?forum=WAVirtualMachinesforWindows
One showing the retries (I haven’t tried this yet):
opened 04:57PM - 04 Apr 20 UTC
closed 09:44AM - 13 Apr 20 UTC
bug
OS: Ubuntu
needs eyes
**Describe the bug**
On some jobs (apparently in a non-deterministic way) comma… nds such as `apt-get install` fail with the following error:
~~~
Get:1 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu bionic/main amd64 gdb amd64 8.2-0ubuntu1~18.04 [3024 kB]
Get:2 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu bionic/main amd64 gdbserver amd64 8.2-0ubuntu1~18.04 [292 kB]
Get:3 http://ppa.launchpad.net/ondrej/php/ubuntu bionic/main amd64 libxml2-dev amd64 2.9.10+dfsg-2+ubuntu18.04.1+deb.sury.org+1 [821 kB]
Get:4 http://ppa.launchpad.net/ondrej/php/ubuntu bionic/main amd64 libxml2 amd64 2.9.10+dfsg-2+ubuntu18.04.1+deb.sury.org+1 [726 kB]
Get:5 http://ppa.launchpad.net/ondrej/php/ubuntu bionic/main amd64 libgraphicsmagick-q16-3 amd64 1.3.30+hg15796-1+ubuntu18.04.1+deb.sury.org+2 [1181 kB]
Get:6 http://ppa.launchpad.net/ondrej/php/ubuntu bionic/main amd64 libgraphicsmagick++-q16-12 amd64 1.3.30+hg15796-1+ubuntu18.04.1+deb.sury.org+2 [144 kB]
Err:7 http://azure.archive.ubuntu.com/ubuntu bionic/main amd64 libdouble-conversion1 amd64 2.0.1-4ubuntu1
Could not connect to azure.archive.ubuntu.com:80 (52.177.174.250), connection timed out
Ign:8 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libqt5core5a amd64 5.9.5+dfsg-0ubuntu2.5
Ign:9 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libwayland-server0 amd64 1.16.0-1ubuntu1.1~18.04.3
Err:10 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libgbm1 amd64 19.2.8-0ubuntu0~18.04.3
Unable to connect to azure.archive.ubuntu.com:http:
Err:11 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libxcb-xfixes0 amd64 1.13-2~ubuntu18.04
Unable to connect to azure.archive.ubuntu.com:http:
Err:12 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libegl-mesa0 amd64 19.2.8-0ubuntu0~18.04.3
Unable to connect to azure.archive.ubuntu.com:http:
Err:13 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libegl1 amd64 1.0.0-2ubuntu2.3
~~~
For an example of such failure, check https://github.com/robotology/idyntree/pull/668/checks?check_run_id=560084383 . I would not be too surprised about CI jobs failing for networks problems, but this specific issue seems to be extremely frequent. I did not collect precise data on how much frequently this happens, but my impression that it happens in the order of magnitude of 1 out of 10 builds.
This issue is already being discussed on GitHub Community Forum at https://github.community/t5/GitHub-Actions/Install-dependencies-in-Ubuntu-flakes-several-times-a-wekk/td-p/51785 , but the GitHub support suggested me to open an issue here as well.
**Area for Triage**:
**Question, Bug, or Feature?**:
Bug
**Virtual environments affected**
- [ ] macOS 10.15
- [x] Ubuntu 16.04 LTS
- [x] Ubuntu 18.04 LTS
- [ ] Windows Server 2016 R2
- [ ] Windows Server 2019
**Expected behavior**
I would expect commands such as `apt-get install` to work correctly.
**Actual behavior**
It is not clear what is triggering this behavior, but sometimes `apt-get install` fails.