If a GitHub Actions workflow that worked last month suddenly fails, check the runner image first. GitHub moved the ubuntu-latest label from Ubuntu 24.04 to Ubuntu 26.04 gradually between 19 October and 19 November 2026. Every workflow with runs-on: ubuntu-latest now runs on a newer operating system with new default versions of Python, Java, Node.js, GCC and more.
Most builds keep working without any changes at all, which is why the problem can feel random when it does appear. The ones that break usually hit one of a dozen changes, and each has a quick fix. This guide lists all twelve, shows how to confirm which image a job used, and explains when to pin ubuntu-24.04 while you fix the rest.

The short version
ubuntu-latestnow points to Ubuntu 26.04 for all GitHub-hosted runner jobs; the rollout finished on 19 November 2026.- Defaults changed: Python 3.14, Java 25, Node.js 24, Go 1.26, Clang 21 and GCC 15.
sudois now sudo-rs, and core tools likelsandddcome from the Rust uutils project.- CMake 4, Helm 4, MySQL 8.4 and Docker Compose 5 each break older scripts in specific ways.
- Several tools are gone, including miniconda, Mercurial and globally installed npm packages.
- Need time? Pin
runs-on: ubuntu-24.04, fix the build, then move back.
What changed with ubuntu-latest?
GitHub announced on 17 September 2026 that the Ubuntu 26.04 runner image was generally available for x64 and arm64, and that ubuntu-latest would move to it “gradually between October 19 and November 19, 2026.” During the rollout, the same label could land on either image, which is why some teams saw builds pass and fail on alternate runs.

| Date (2026) | Event |
|---|---|
| 11 June | Ubuntu 26.04 runner image enters public preview |
| 17 September | Ubuntu 26.04 image generally available; migration dates announced |
| 23 September | Node 20 removed from GitHub Actions runners |
| 19 October | ubuntu-latest starts moving to 26.04 |
| 19 November | Migration complete |
Two other changes landed in the same weeks, which makes failures harder to diagnose. Node 20 was removed from the runners on 23 September, and GitHub announced that pull_request_target will be blocked by default in public repositories from 2 December. If your workflow uses that trigger, read our pull_request_target guide as well.
How do I know if ubuntu-latest caused my failure?
Check the “Set up job” step of the failed run. It prints the runner image name and version. If it says ubuntu-26.04 and the last passing run said ubuntu-24.04, the image change is your prime suspect.

You can also print the image details in a step at the start of the job:
echo "ImageOS=$ImageOS ImageVersion=$ImageVersion"
grep PRETTY_NAME /etc/os-release
On the new image, $ImageOS is ubuntu26.
Run both images side by side
The fastest way to find what broke is a matrix that runs your job on both images:
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, ubuntu-26.04]
runs-on: ${{ matrix.os }}

If the job passes on 24.04 and fails on 26.04, compare the logs line by line from the first error. fail-fast: false keeps both jobs running so you can compare them.
12 breaking changes in ubuntu-latest and how to fix them
The changes below come from GitHub’s runner image notes (issue 14226) and hands-on testing by ComputingForGeeks, which compared both images on 20 October 2026.

| Tool | ubuntu-24.04 | ubuntu-26.04 |
|---|---|---|
| Python (default) | 3.12 | 3.14 |
| Java (default) | 17 | 25 |
| Node.js (default) | 22 | 24 |
| Go (default) | 1.24 | 1.26 |
| GCC | 13 | 13 to 15, default 15 |
| Clang (default) | 14 | 21 |
| CMake | 3.31 | 4.x |
| Helm | 3 | 4 |
| MySQL server | 8.0 | 8.4 |
| PostgreSQL client | 16 | 18 |
| Docker / Compose | 28 / 2.x | 29 / 5.x |
1. Python 3.14 is the default
ubuntu-latest now ships Python 3.14, and the pre-cached 3.10 to 3.13 versions were listed as unavailable at launch. Old modules such as cgi, crypt and telnetlib were removed from the standard library in Python 3.13, so code that still imports them fails.
The fix is to install the version you test against explicitly with the setup action:
- uses: actions/setup-python@v6
with:
python-version: "3.12"
2. Java 25 is the default JDK
Jobs that never set a JDK now get Java 25 instead of 17, and Java 8 is no longer preinstalled. Builds with older Gradle versions or plugins can fail on the newer class file format. Use actions/setup-java with the version your project supports, and upgrade Gradle if you want to move to 25.
3. Node.js 24 is the default, and Node 20 actions are gone
The image’s default Node.js is now 24. Separately, GitHub removed Node 20 from Actions runners on 23 September 2026, and the ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION escape hatch no longer works. JavaScript actions still declaring node20 fail.
Fix: update each action to a release that runs on Node 24. For your own actions, set runs.using: node24 in action.yml and publish a new release.
4. GCC 15 defaults to C23
GCC 15 compiles C as C23 (gnu23) by default. In C23, bool, true and false are keywords, so older code with its own typedef int bool; fails to compile. Add -std=gnu17 to CFLAGS until the code is updated.
5. CMake 4 drops very old compatibility
CMake 4 rejects projects whose cmake_minimum_required is below 3.5. This hits many old dependencies built from source.

Fix: add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to the configure command as a stopgap, and raise cmake_minimum_required in your own projects.
6. sudo is now sudo-rs
Ubuntu 26.04 replaces the classic sudo with sudo-rs, a Rust rewrite. ComputingForGeeks found that it ignores sudo -E with a warning, so environment variables you expected to pass through can silently disappear.

Fix: name the variables you need with sudo --preserve-env=VAR1,VAR2, or pass them inline as sudo VAR=value command. The original sudo is still installed at /usr/bin/sudo.ws if you need it urgently.
7. Core utilities come from uutils
Commands such as ls, date, sort and dd now come from uutils, the Rust reimplementation of GNU coreutils. Common flags behave the same, but error messages differ. Tests that grep for exact error text from these tools can fail. Match on exit codes instead of messages where you can.
8. MySQL 8.4 disables mysql_native_password by default
The MySQL server on the image moved from 8.0 to 8.4, which does not load the mysql_native_password plugin by default. Older client libraries that only speak that authentication method fail to connect. Update the client library, or start the server with --mysql-native-password=ON for legacy tests. Running MySQL as a service container with a pinned version avoids surprises entirely.
9. Helm 4 renames flags
Helm moved from 3 to 4. One change that breaks deploy scripts: --atomic is now --rollback-on-failure. Scripts written for Helm 3 fail on Helm 4, and the new name fails on Helm 3. Install a pinned Helm version with azure/setup-helm so the version does not change under you.
10. Docker 29 and Compose 5
Docker moved to 29 and Compose to 5. Most compose files keep working. ComputingForGeeks found that the default seccomp profile blocks the socketcall system call, so 32-bit (i386) containers cannot resolve hostnames. If you build or test i386 images, run them with an adjusted seccomp profile or move them to 64-bit bases.
11. Tools removed from the image
Several tools are not on the 26.04 image:
| Removed | Replacement |
|---|---|
| miniconda | conda-incubator/setup-miniconda |
Mercurial (hg) |
Install with apt-get install mercurial |
| pulumi | pulumi/actions |
| Julia | julia-actions/setup-julia |
| fastlane | Install with Ruby gems in the job |
| Global npm packages such as typescript, webpack, grunt and gulp | Add them to devDependencies and run with npx |
| Java 8, Go 1.22 and 1.23 | actions/setup-java, actions/setup-go |
The global npm change catches many front-end builds that called tsc or webpack without installing them. Declaring tools as project dependencies is better practice anyway.
12. /tmp and other small surprises
Early 26.04 images mounted /tmp as a RAM-backed tmpfs with a per-user quota, and writes failed well before the advertised size. ComputingForGeeks reports a fix was merged to keep /tmp on disk, but builds from before the fix showed the problem. If large temporary files fail with “No space left on device,” write them to $RUNNER_TEMP instead. (Our guide to fixing “No space left on device” covers the general case.)
Other differences worth knowing: Ruby 3.3 is the only preinstalled Ruby, PHP is 8.5, PowerShell is 7.6 and Swift was not yet available at launch.
ubuntu-latest, ubuntu-24.04 and ubuntu-26.04 labels explained
GitHub offers several Ubuntu labels, and choosing the right one decides how often your builds change under you:
| Label | Points to | Changes when |
|---|---|---|
ubuntu-latest |
Ubuntu 26.04 since 19 November 2026 | GitHub moves it to the next LTS, roughly every two years |
ubuntu-26.04 |
Ubuntu 26.04 | Only weekly image updates within 26.04 |
ubuntu-24.04 |
Ubuntu 24.04 | Weekly updates until GitHub retires the image |
ubuntu-26.04-arm |
Ubuntu 26.04 on arm64 | Weekly updates |
Every label still receives weekly image updates with new patch versions of tools. Only ubuntu-latest jumps between major Ubuntu releases. That is why pinning ubuntu-26.04 now gives you two years of the same base system, while ubuntu-latest will move again when the next LTS image is ready.
Are container jobs affected by the ubuntu-latest change?
Only partly. If a job uses container: or runs its build steps inside docker run, the build itself happens in your container image, which did not change. Your compiler, Python and Java versions come from that image, not from the runner.
The host still changed, though. The Docker engine is now version 29, the default seccomp profile is stricter for 32-bit containers, and steps that run on the host before or after the container, such as caching or uploading artifacts, use the new image. Container-based builds were among the least affected by the move to ubuntu-latest on 26.04, which is one reason teams with strict reproducibility needs build inside pinned containers.
Quick fixes by language
If you only need the fix for your stack, this table collects them. Each row assumes the job runs on ubuntu-latest and failed after the move to 26.04.
| Stack | Typical symptom | Quick fix |
|---|---|---|
| Python | Import errors for removed modules, wheels not available for 3.14 | actions/setup-python with your tested version |
| Java and Kotlin | Gradle or plugin fails on Java 25 | actions/setup-java with 17 or 21; upgrade Gradle later |
| Node.js | Action fails because Node 20 is missing | Update the action; set node24 in your own actions |
| C and C++ | bool errors, CMake minimum version errors |
-std=gnu17 and -DCMAKE_POLICY_VERSION_MINIMUM=3.5 |
| Go | Old Go version not preinstalled | actions/setup-go with go-version-file: go.mod |
| Ruby | Only Ruby 3.3 preinstalled | ruby/setup-ruby with your version |
| PHP | Deprecations on PHP 8.5 | shivammathur/setup-php with your version |
| Kubernetes deploys | Helm flag errors | azure/setup-helm pinned to the version your scripts use |
Clear your caches after the image change
Caches can make the move to a new ubuntu-latest image look worse than it is. Many workflows key caches on runner.os, which is Linux on both 24.04 and 26.04. A cache saved on 24.04 can then be restored on 26.04, bringing back compiled binaries, Python virtual environments or native Node modules built against the old system libraries.
Symptoms include import errors for compiled extensions, “GLIBC version not found” messages and native modules that crash on load. The fix is to add the image to the cache key:
key: ${{ runner.os }}-${{ env.ImageOS }}-pip-${{ hashFiles('requirements.txt') }}
Alternatively, bump a version prefix in the key once to force a fresh cache. Either way, delete old caches from the repository’s Actions cache page after the migration so they stop being restored.
Should I pin ubuntu-24.04 instead of using ubuntu-latest?
Pin ubuntu-24.04 when a fix will take longer than a day and the build blocks other work. GitHub’s own advice in the migration notice is to pin ubuntu-24.04 if you are not ready to move.

| Situation | Choice |
|---|---|
| Fix is a one-line flag or setup action | Fix it and stay on ubuntu-latest |
| Fix needs code changes across the project | Pin ubuntu-24.04 temporarily, with an issue to remove the pin |
| Release builds must be reproducible | Pin a specific image label and upgrade on a schedule |
| You maintain a library tested on many systems | Test both labels in a matrix |
A pin is a debt, not a fix. GitHub supports older images for a limited time, and when 24.04 is eventually retired the same problems will return at a worse moment. Keep a tracking issue and remove the pin within weeks.
Is ubuntu-latest a good idea at all?
It depends on what you value more: staying current or staying predictable. ubuntu-latest gives you security updates and new tools automatically, at the cost of a migration like this one every two years. An explicit label such as ubuntu-26.04 gives you control over when that happens. Many teams use explicit labels for release pipelines and ubuntu-latest for everyday pull request checks, which surfaces breakage early without blocking releases.
A worked example: fixing one broken workflow
Here is a typical case. A small web project runs its checks on ubuntu-latest: a Python API with MySQL integration tests, a TypeScript front end, and a deploy step that calls Helm. In November, three things fail at once.
- The Python tests fail to import a module that relied on
cgi. The team addsactions/setup-pythonwith Python 3.12 to get green builds, then replaces the old module in a follow-up pull request. - The MySQL tests fail to connect because the legacy client uses
mysql_native_password. The team moves MySQL into a service container pinned tomysql:8.0for now, with a ticket to upgrade the client library. - The front-end build fails with
tsc: command not found, because TypeScript was never inpackage.json. Adding it todevDependenciesand runningnpx tscfixes it for good.
The Helm deploy keeps working only because the team had already pinned Helm with a setup action. Without that pin, the --atomic flag would have failed on Helm 4.
The pattern is the same in most projects: two or three small fixes, each traceable to one line in the version table. Running a two-image matrix first turned a confusing afternoon into a twenty-minute job.
How to read runner image release notes
GitHub publishes the contents of every runner image in the actions/runner-images repository. Two places are worth bookmarking:
- The announcement issues, which list breaking changes and removed tools before a label moves.
- The software list for each image, which shows exact versions of every preinstalled tool.
When ubuntu-latest moves again, read the announcement issue as soon as it appears, run your workflows on the new label in a scheduled job, and fix issues before the rollout starts. GitHub usually gives several months of notice, as it did with the June preview of 26.04.
How to make your workflows survive the next image change
Most of the breakages above share one cause: the workflow relied on whatever happened to be installed on the image. These habits make the next migration, to Ubuntu 28.04 in a couple of years, much calmer:
- Install language runtimes with setup actions (
setup-python,setup-java,setup-node,setup-go) and pin their versions. - Declare build tools such as TypeScript and webpack as project dependencies.
- Run databases as service containers with pinned image tags instead of using the preinstalled servers.
- Pin Helm, Terraform and similar CLIs with their setup actions.
- Add a scheduled weekly job that runs your build on the newest image label in preview.
- Log
$ImageOSand$ImageVersionat the start of important jobs.
Our introduction to the CI/CD pipeline explains how to structure workflows so changes like this stay contained in one place.
What about ubuntu-latest on arm64 and larger runners?
The Ubuntu 26.04 image is available on both x64 and arm64 (ubuntu-26.04-arm), and the same version changes apply. Larger runners that use the standard Ubuntu images follow the same migration. Custom images for larger runners do not change automatically, so check how yours are built.
Self-hosted runners are not affected by the label change, because you control their operating system. They are affected by the Node 20 removal: Node 24 does not support macOS 13.4 and earlier, or 32-bit ARM, so self-hosted runners on those platforms are no longer supported.
Frequently asked questions
When did ubuntu-latest change to Ubuntu 26.04?
GitHub moved it gradually between 19 October and 19 November 2026. Since 19 November, every job on ubuntu-latest uses Ubuntu 26.04.
Why did my build pass and fail on alternate runs in October?
During the rollout, ubuntu-latest could land on either the 24.04 or the 26.04 image. Check the “Set up job” step to see which image each run used.
How do I go back to Ubuntu 24.04?
Change runs-on: ubuntu-latest to runs-on: ubuntu-24.04. Treat it as a temporary pin while you fix the problem.
What is the default Python version on ubuntu-latest now?
Python 3.14. If your project needs another version, install it with actions/setup-python.
Why does sudo -E not work on ubuntu-latest?
Ubuntu 26.04 uses sudo-rs, which ignores -E with a warning. Use sudo --preserve-env=VAR or pass variables inline instead.
Is Java 17 still the default on ubuntu-latest?
No. GitHub’s notes list Java 25 as the new default, and testing on the runner confirmed it. Use actions/setup-java to choose your version.
Why do my JavaScript actions fail with a Node error?
GitHub removed Node 20 from runners in September 2026. Update the action to a version that runs on Node 24.
Will ubuntu-24.04 keep working?
Yes, for now. GitHub supports older images for a period after a new one becomes ubuntu-latest, and will announce a retirement date in advance. Plan to move before then.
Do Windows and macOS runners have similar migrations?
Yes. GitHub moves windows-latest and macos-latest to new images too, on their own schedules. The same advice applies: read the announcement, test early with an explicit label, and install the tools you need with setup actions.
Does ubuntu-latest affect GitHub Codespaces or Dependabot?
No. Codespaces use their own dev container images, and Dependabot’s update jobs run separately. Only GitHub Actions jobs that request ubuntu-latest moved to the new runner image.
How do I find every workflow that uses ubuntu-latest?
Run grep -RIn "ubuntu-latest" .github/workflows in each repository, or use GitHub code search across your organisation with the same term limited to the .github/workflows path. The list tells you which jobs moved and which already use explicit labels.
Why did sudo and coreutils change?
The change comes from Ubuntu, not GitHub. Ubuntu adopted sudo-rs and the Rust uutils coreutils in its 25.10 release, so the 26.04 LTS inherits them. GitHub’s runner image simply follows Ubuntu’s defaults.
Fix it once, then pin on purpose
The move of ubuntu-latest to Ubuntu 26.04 is a normal part of using a managed CI service, but it hurts when it arrives unannounced in a failed release. Find the image in the job log, run a two-image matrix, apply the fixes above and decide deliberately where you want ubuntu-latest and where you want an explicit label. Then your pipeline only changes when you choose to change it. When the next LTS image appears in preview, start a scheduled test job on it straight away, and the following move of ubuntu-latest will be a non-event for your team.


