CI build still fails as mirror only tested for downloading for benchmark.
Today's issue is a bit different, which is not covered by the script.
Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Also maybe an option to blacklist repos would be helpful, or at least an option to ban all azure repos
Linux: Configure fast APT mirror
APT::Acquire::Retries "3";
+ curl -sSfL --retry 3 --max-time 6 https://raw.githubusercontent.com/vegardit/fast-apt-mirror.sh/v1/fast-apt-mirror.sh -o /home/runner/fast-apt-mirror.sh
Current mirror: http://azure.archive.ubuntu.com/ubuntu/ (/etc/apt/apt-mirrors.txt)
Randomly selecting 20 mirrors...done
Checking health status of 20 mirrors using '/dists/jammy-security/Contents-amd64.gz'....................done
-> UP-TO-DATE (last modified: 2024-04-23 01:29:38 UTC) http://archive.ubuntu.com/ubuntu/
-> UP-TO-DATE (last modified: 2024-04-23 01:29:38 UTC) http://azure.archive.ubuntu.com/ubuntu/
-> UP-TO-DATE (last modified: 2024-04-23 01:29:38 UTC) http://mirror.cogentco.com/pub/linux/ubuntu/
-> UP-TO-DATE (last modified: 2024-04-23 01:29:38 UTC) http://mirror.math.princeton.edu/pub/ubuntu/
-> UP-TO-DATE (last modified: 2024-04-23 01:29:38 UTC) http://mirror.metrocast.net/ubuntu/
-> UP-TO-DATE (last modified: 2024-04-23 01:29:38 UTC) http://mirror.team-cymru.org/ubuntu/
-> UP-TO-DATE (last modified: 2024-04-23 01:29:38 UTC) http://mirror.us-ny2.kamatera.com/ubuntu/
-> UP-TO-DATE (last modified: 2024-04-23 01:29:38 UTC) http://mirror.us-tx.kamatera.com/ubuntu/
-> UP-TO-DATE (last modified: 2024-04-23 01:29:38 UTC) http://mirrors.liquidweb.com/ubuntu/
-> UP-TO-DATE (last modified: 2024-04-23 01:29:38 UTC) http://mirrors.ocf.berkeley.edu/ubuntu/
-> UP-TO-DATE (last modified: 2024-04-23 01:29:38 UTC) http://mirrors.usinternet.com/ubuntu/archive/
-> UP-TO-DATE (last modified: 2024-04-23 01:29:38 UTC) http://ubuntu.phoenixnap.com/ubuntu/
-> UP-TO-DATE (last modified: 2024-04-23 01:29:38 UTC) http://www.gtlib.gatech.edu/pub/ubuntu/
-> UP-TO-DATE (last modified: 2024-04-23 01:29:38 UTC) https://atl.mirrors.clouvider.net/ubuntu/
-> UP-TO-DATE (last modified: 2024-04-23 01:29:38 UTC) https://la.mirrors.clouvider.net/ubuntu/
-> UP-TO-DATE (last modified: 2024-04-23 01:29:38 UTC) https://mirrors.iu13.net/ubuntu/
-> UP-TO-DATE (last modified: 2024-04-23 01:29:38 UTC) https://mirrors.tscak.com/ubuntu/
-> outdated (last modified: 2024-04-20 01:29:58 UTC) http://mirrors.advancedhosters.com/ubuntu/
-> outdated (last modified: 2023-01-26 05:30:47 UTC) https://mirror.enzu.com/ubuntu/
-> n/a http://mirrors.arpnetworks.com/Ubuntu/
=> 19 mirrors are reachable
Speed testing 10 of the available 19 mirrors (sample download size: 1024KB)..........done
-> http://mirror.team-cymru.org/ubuntu/ (174KB/s)
-> http://archive.ubuntu.com/ubuntu/ (1.5MB/s)
-> http://mirrors.ocf.berkeley.edu/ubuntu/ (1.6MB/s)
-> http://mirror.us-tx.kamatera.com/ubuntu/ (2.6MB/s)
-> http://mirrors.liquidweb.com/ubuntu/ (3.6MB/s)
-> http://mirror.metrocast.net/ubuntu/ (4.2MB/s)
-> http://mirror.math.princeton.edu/pub/ubuntu/ (5.6MB/s)
-> http://mirror.us-ny2.kamatera.com/ubuntu/ (14MB/s)
-> http://mirror.cogentco.com/pub/linux/ubuntu/ (21MB/s)
=> http://azure.archive.ubuntu.com/ubuntu/ (82MB/s) determined as fastest mirror within 5 seconds
Current mirror: http://azure.archive.ubuntu.com/ubuntu/ (/etc/apt/apt-mirrors.txt)
Nothing to do, already using: http://azure.archive.ubuntu.com/ubuntu/
http://azure.archive.ubuntu.com/ubuntu/
+ sudo apt-get update
Get:1 file:/etc/apt/apt-mirrors.txt Mirrorlist [142 B]
Get:6 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease
Err:6 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease
Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Hit:2 http://azure.archive.ubuntu.com/ubuntu jammy InRelease
Get:3 http://azure.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Get:4 http://azure.archive.ubuntu.com/ubuntu jammy-backports InRelease [109 kB]
Get:5 http://azure.archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:7 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1610 kB]
Get:8 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [303 kB]
Get:9 http://azure.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [1830 kB]
Hit:13 https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu jammy InRelease
Get:10 http://azure.archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [311 kB]
Get:11 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1070 kB]
Get:12 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [244 kB]
Get:14 http://azure.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [27.2 kB]
Get:15 http://azure.archive.ubuntu.com/ubuntu jammy-backports/universe Translation-en [16.2 kB]
Get:16 http://azure.archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages [1[39](https://github.com/OneKeyHQ/bluetooth-firmware-pro/actions/runs/8814823025/job/24195516436#step:2:41)2 kB]
Get:17 http://azure.archive.ubuntu.com/ubuntu jammy-security/main Translation-en [243 kB]
Get:18 http://azure.archive.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [1768 kB]
Get:19 http://azure.archive.ubuntu.com/ubuntu jammy-security/restricted Translation-en [299 kB]
Get:20 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [848 kB]
Get:21 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe Translation-en [163 kB]
Reading package lists...
E: Failed to fetch https://packages.microsoft.com/ubuntu/22.04/prod/dists/jammy/InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: The repository 'https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease' is no longer signed.
Error: Process completed with exit code 100.