sudo apt install fails with: Unable to connect to azure.archive.ubuntu.com

Hello,

I have a action that does sudo apt install gnat gprbuild to install an Ada compiler.

Since a couple days ago it was working fine, but now apt reports a connection error (full logs below):

Err:4 http://azure.archive.ubuntu.com/ubuntu bionic/universe amd64 gnat amd64 7ubuntu1
Unable to connect to azure.archive.ubuntu.com:http:

Is there something more I have to do? Is it a problem on GitHub Actions side?

Thanks for your help,

2019-09-19T00:01:25.9492525Z [command]sudo apt install gnat gprbuild
2019-09-19T00:01:26.0992710Z
2019-09-19T00:01:26.0993331Z WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
2019-09-19T00:01:26.0993560Z
2019-09-19T00:01:32.5110884Z Reading package lists...
2019-09-19T00:01:32.8300662Z Building dependency tree...
2019-09-19T00:01:32.8414632Z Reading state information...
2019-09-19T00:01:33.0204112Z The following packages were automatically installed and are no longer required:
2019-09-19T00:01:33.0208720Z bc dns-root-data dnsmasq-base ebtables landscape-common liblxc-common
2019-09-19T00:01:33.0209575Z liblxc1 libuv1 lxcfs lxd lxd-client python3-attr python3-automat
2019-09-19T00:01:33.0210570Z python3-click python3-colorama python3-constantly python3-hyperlink
2019-09-19T00:01:33.0212507Z python3-incremental python3-pam python3-pyasn1 python3-pyasn1-modules
2019-09-19T00:01:33.0213289Z python3-service-identity python3-twisted python3-twisted-bin
2019-09-19T00:01:33.0214300Z python3-zope.interface uidmap xdelta3
2019-09-19T00:01:33.0214765Z Use 'sudo apt autoremove' to remove them.
2019-09-19T00:01:33.0214968Z The following additional packages will be installed:
2019-09-19T00:01:33.0218087Z gnat-7 libgnat-7 libgnatvsn7 libgpr16.1.2016 libxmlada-dom4.6
2019-09-19T00:01:33.0219060Z libxmlada-input4.6 libxmlada-sax4.6.2016 libxmlada-schema4.6.2016
2019-09-19T00:01:33.0220953Z libxmlada-unicode4.6.2016
2019-09-19T00:01:33.0226457Z Suggested packages:
2019-09-19T00:01:33.0227425Z ada-reference-manual-2012 gnat-gps gnat-7-doc gnat-7-sjlj gfortran
2019-09-19T00:01:33.1092414Z The following NEW packages will be installed:
2019-09-19T00:01:33.1096689Z gnat gnat-7 gprbuild libgnat-7 libgnatvsn7 libgpr16.1.2016 libxmlada-dom4.6
2019-09-19T00:01:33.1097436Z libxmlada-input4.6 libxmlada-sax4.6.2016 libxmlada-schema4.6.2016
2019-09-19T00:01:33.1100160Z libxmlada-unicode4.6.2016
2019-09-19T00:02:03.3984751Z 0 upgraded, 11 newly installed, 0 to remove and 16 not upgraded.
2019-09-19T00:02:03.3986078Z Need to get 17.4 MB of archives.
2019-09-19T00:02:03.3986557Z After this operation, 92.4 MB of additional disk space will be used.
2019-09-19T00:02:03.3988620Z Ign:1 http://azure.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 libgnat-7 amd64 7.4.0-1ubuntu1~18.04.1
2019-09-19T00:02:03.4082076Z Ign:2 http://azure.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 libgnatvsn7 amd64 7.4.0-1ubuntu1~18.04.1
2019-09-19T00:02:03.4083833Z Ign:3 http://azure.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 gnat-7 amd64 7.4.0-1ubuntu1~18.04.1
2019-09-19T00:02:03.4084377Z Err:4 http://azure.archive.ubuntu.com/ubuntu bionic/universe amd64 gnat amd64 7ubuntu1
2019-09-19T00:02:03.4084748Z Unable to connect to azure.archive.ubuntu.com:http:
2019-09-19T00:02:03.4086280Z Err:5 http://azure.archive.ubuntu.com/ubuntu bionic/universe amd64 libxmlada-unicode4.6.2016 amd64 17.1.2017-5
2019-09-19T00:02:03.4086793Z Unable to connect to azure.archive.ubuntu.com:http:
2019-09-19T00:02:03.4087457Z Err:6 http://azure.archive.ubuntu.com/ubuntu bionic/universe amd64 libxmlada-input4.6 amd64 17.1.2017-5
2019-09-19T00:02:03.4088538Z Unable to connect to azure.archive.ubuntu.com:http:
2019-09-19T00:02:03.4089568Z Err:7 http://azure.archive.ubuntu.com/ubuntu bionic/universe amd64 libxmlada-sax4.6.2016 amd64 17.1.2017-5
2019-09-19T00:02:03.4090765Z Unable to connect to azure.archive.ubuntu.com:http:
2019-09-19T00:02:03.4091742Z Err:8 http://azure.archive.ubuntu.com/ubuntu bionic/universe amd64 libxmlada-dom4.6 amd64 17.1.2017-5
2019-09-19T00:02:03.4092120Z Unable to connect to azure.archive.ubuntu.com:http:
2019-09-19T00:02:03.4092859Z Err:9 http://azure.archive.ubuntu.com/ubuntu bionic/universe amd64 libxmlada-schema4.6.2016 amd64 17.1.2017-5
2019-09-19T00:02:03.4093564Z Unable to connect to azure.archive.ubuntu.com:http:
2019-09-19T00:02:03.4094454Z Err:10 http://azure.archive.ubuntu.com/ubuntu bionic/universe amd64 libgpr16.1.2016 amd64 2017-5
2019-09-19T00:02:03.4094837Z Unable to connect to azure.archive.ubuntu.com:http:
2019-09-19T00:02:03.4097433Z Err:11 http://azure.archive.ubuntu.com/ubuntu bionic/universe amd64 gprbuild amd64 2017-5
2019-09-19T00:02:03.4098051Z Unable to connect to azure.archive.ubuntu.com:http:
2019-09-19T00:02:03.5770227Z Get:1 http://security.ubuntu.com/ubuntu bionic-updates/universe amd64 libgnat-7 amd64 7.4.0-1ubuntu1~18.04.1 [994 kB]
2019-09-19T00:02:04.2287176Z Get:2 http://security.ubuntu.com/ubuntu bionic-updates/universe amd64 libgnatvsn7 amd64 7.4.0-1ubuntu1~18.04.1 [341 kB]
2019-09-19T00:02:04.7494261Z Get:3 http://security.ubuntu.com/ubuntu bionic-updates/universe amd64 gnat-7 amd64 7.4.0-1ubuntu1~18.04.1 [13.5 MB]
2019-09-19T00:02:05.7985412Z Fetched 14.8 MB in 33s (453 kB/s)
2019-09-19T00:02:05.7986580Z E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/universe/g/gnat/gnat_7ubuntu1_amd64.deb Unable to connect to azure.archive.ubuntu.com:http:
2019-09-19T00:02:05.7988056Z E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/universe/libx/libxmlada/libxmlada-unicode4.6.2016_17.1.2017-5_amd64.deb Unable to connect to azure.archive.ubuntu.com:http:
2019-09-19T00:02:05.7989708Z E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/universe/libx/libxmlada/libxmlada-input4.6_17.1.2017-5_amd64.deb Unable to connect to azure.archive.ubuntu.com:http:
2019-09-19T00:02:05.7990909Z E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/universe/libx/libxmlada/libxmlada-sax4.6.2016_17.1.2017-5_amd64.deb Unable to connect to azure.archive.ubuntu.com:http:
2019-09-19T00:02:05.8044290Z E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/universe/libx/libxmlada/libxmlada-dom4.6_17.1.2017-5_amd64.deb Unable to connect to azure.archive.ubuntu.com:http:
2019-09-19T00:02:05.8045070Z E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/universe/libx/libxmlada/libxmlada-schema4.6.2016_17.1.2017-5_amd64.deb Unable to connect to azure.archive.ubuntu.com:http:
2019-09-19T00:02:05.8045680Z E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/universe/g/gprbuild/libgpr16.1.2016_2017-5_amd64.deb Unable to connect to azure.archive.ubuntu.com:http:
2019-09-19T00:02:05.8046238Z E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/universe/g/gprbuild/gprbuild_2017-5_amd64.deb Unable to connect to azure.archive.ubuntu.com:http:
2019-09-19T00:02:05.8046653Z E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
2019-09-19T00:02:05.8110657Z ##[error]The process 'sudo' failed with exit code 100
2019-09-19T00:02:05.8317759Z ##[error]Node run failed with exit code 1

Sorry about the delay, but I’m seeing connections to that endpoint working successfully.  Seems like it may have been an intermittent networking issue or brief problem with that repository.  Are you still having trouble?

It was an intermittent problem indeed.