"Temporary failure resolving 'azure.archive.ubuntu.com'" in apt-get on a GitHub-hosted Ubuntu runner
This means the runner could not turn the mirror's name into an address, so apt never reached a mirror at all. On November 11, 2026, from about 13:48 UTC, it hit GitHub-hosted runners on ubuntu-22.04, ubuntu-24.04 and ubuntu-26.04 alike, in the middle of a Canonical outage that included DNS. A GitHub reply on runner-images #15296 said the Azure and Canonical mirrors were both affected, and a later one that the Azure mirror was healthy again (18:14 UTC). The issue was closed on November 12. Nothing in the workflow was wrong, and a re-run after the outage passes.
What it looks like
The report that opened #15296 (ubuntu-26.04, npx playwright install --with-deps chromium, exit code 100):
Temporary failure resolving 'azure.archive.ubuntu.com' Temporary failure resolving 'archive.ubuntu.com' Temporary failure resolving 'security.ubuntu.com' E: Unable to fetch some archives
A report from ubuntu-24.04 shows it in a plain apt update and apt install. The update only warns, so the install after it runs on stale lists and fails:
Err:2 https://security.ubuntu.com/ubuntu noble InRelease Temporary failure resolving 'azure.archive.ubuntu.com' E: Failed to fetch https://security.ubuntu.com/ubuntu/pool/main/d/dkms/dkms_3.0.11-1ubuntu13_all.deb Temporary failure resolving 'azure.archive.ubuntu.com' E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
If a run fails in an apt step while you are away from the browser: Pipeline Inbox for GitHub Actions Workflows, a plugin for JetBrains IDEs, notifies you when a run of yours or of your current branch fails, with a link to the failed job's log.
What happened on November 11, 2026
- The issue was opened at 14:46 UTC: since about 13:48 UTC, apt could not resolve the Ubuntu mirrors on
ubuntu-26.04; npm and GitHub downloads worked, and the same job had passed at 13:10 UTC. - Users reported the same on
ubuntu-24.04(image20261101.360), and one pointed to #15297 for Ubuntu 22.04. One of them rangetent hosts archive.ubuntu.comsix times, 45 seconds apart, and got no result each time, while GitHub, crates.io andpackages.microsoft.comresolved in the same job. So it was name resolution, not a slow or down mirror. - A commenter linked status.canonical.com, which showed a major outage that day including DNS. Its entries for
archive.ubuntu.com,security.ubuntu.comand the Azure mirrors still said "Operational", with timestamps days old, so they did not show the effect on resolution. - At 16:23 UTC a GitHub reply said GitHub was aware of a widespread outage reported by Canonical that could cause
apt-getfailures, as both the Azure and the Canonical mirrors were affected. At 18:14 UTC another said the Azure mirror was healthy and operating normally, and the issue should be mitigated, with a link to Canonical's incident. - On November 12 (15:55 UTC) a runner-images contributor closed the issue: the cause was the Canonical outage on November 11, which broke name resolution for the Ubuntu archive hosts, it was resolved the same day, and #15297 (22.04) was closed for the same reason. They asked for a new issue if the failures continue.
Name resolution or a bad mirror?
Run this in the failing job, or in a step with if: failure():
getent hosts azure.archive.ubuntu.com archive.ubuntu.com security.ubuntu.com getent hosts github.com
- No result for the Ubuntu names while
github.comresolves: the case on this page.getent hostsis the check the user above ran on a runner. - Addresses for all of them: DNS works, and the problem is the connection or the mirror. A mirror that does not answer ends in
Could not connect to ... connection timed out, and one that answers slowly shows no error at all, see a slow azure.archive.ubuntu.com. - The 24.04 and 26.04 image readmes list
dnsutils(24.04) andbind9-dnsutils(26.04), which are the packages fordigandnslookup.
What a workflow can do
- Re-run the failed jobs once the outage is over. In the web UI, open the "Re-run jobs" dropdown and choose "Re-run failed jobs"; with the CLI,
gh run rerun RUN_ID --failed(add--debugfor debug logging). A run can be re-run up to 30 days after it started (Re-run workflows and jobs, gh run rerun). - Ask apt to retry.
Acquire::Retriesis the number of times apt retries a failed file, and every apt tool takes-oto set an option on the command line (apt.conf(5)):sudo apt-get update -o Acquire::Retries=5 sudo apt-get install --yes -o Acquire::Retries=5 PACKAGE
The runner image setsAcquire::Retries "1"in/etc/apt/apt.conf.d/zz-retries(configure-apt.sh), and the command line overrides it. This covers a short gap. It did not save the jobs on November 11: one user's apt retried for about 27 minutes on each run and still failed with exit code 100. - Retry the whole step, with a wait between tries, so that a short outage passes and a long one fails the job instead of hanging it:
- name: Install system packages timeout-minutes: 10 run: | for i in 1 2 3 4; do sudo apt-get update && sudo apt-get install --yes PACKAGE && exit 0 sleep $((i * 30)) done exit 1Keepupdateandinstallin the same try: a failedupdateleaves stale lists and the install after it fails. The counts and waits are an example, not a value from GitHub or Ubuntu; a loop like this rides out minutes, not an outage of hours. - Skip apt when you can. The first workaround in #15296, for Playwright, was to install only the browser and call
npx playwright install-depsonly iflddshowed a missing library. That fits a few packages and needs checking for yours.
Look at status.canonical.com before you change a workflow. The page is rendered with JavaScript; the RSS feed at status.canonical.com/rss lists the components and the time of their last change. On November 11 the mirror entries lagged, so a green page does not rule out a resolution problem. The getent check above does.
Tell it apart from
- An apt install that runs for minutes and is cancelled, with
Get:lines fromazure.archive.ubuntu.com: apt-get stuck on a slow Azure mirror. E: Unable to locate packageafter the runner moved to 26.04: renamed packages on Ubuntu 26.04.does not have a Release filefor a third-party repository: Release file on Ubuntu 26.04.- The job ends with "The hosted runner lost communication with the server": hosted runner lost communication. A bare "The operation was canceled." is a cancellation, not a resolution error.
Find the failed apt step from IntelliJ IDEA
Pipeline Inbox for GitHub Actions Workflows, a plugin by Lesstep for JetBrains IDEs 2024.1 or later, lists the runs of all your repositories in an IDE tool window, with their jobs, steps and job logs, and notifies you when a run of yours or of your current branch fails, with a link to the failed job's log. Reading is free. Re-running failed jobs (or all jobs, with debug logging), cancelling runs, running workflows with inputs and approving deployments are Pro (US$1.50 a month, with a 30-day trial).
Install it free from JetBrains Marketplace (reading your runs needs no license)
GitHub and GitHub Actions are trademarks of GitHub, Inc.; Ubuntu is a trademark of Canonical Ltd.; Azure is a trademark of Microsoft Corporation; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with, sponsored or endorsed by GitHub, Inc., Canonical, Microsoft or JetBrains.
More: apt-get stuck on a slow Azure mirror · apt on Ubuntu 26.04: renamed and removed packages · "does not have a Release file" on Ubuntu 26.04 · Hosted runner lost communication · "The operation was canceled." · "The ubuntu-latest label will migrate to Ubuntu 26" · 日本語