apt on ubuntu-latest (Ubuntu 26.04): "has no installation candidate" and "Unable to locate package"
ubuntu-latest is moving from Ubuntu 24.04 to 26.04 between October 19 and November 19, 2026 (what else changes). Some packages that 24.04 had are renamed or gone in 26.04, so an apt-get install step that worked last week stops within seconds with exit code 100. The error names the package, and the lines just above it often name the replacement.
The two messages
"Unable to locate package" means 26.04 has nothing by that name. "has no installation candidate" means apt knows the name, because another package refers to it or provides it, but there is nothing to install under it. The same step can print both (utf8.h #152):
E: Unable to locate package gcc-10 E: Package 'g++-10' has no installation candidate ##[error]Process completed with exit code 100.
For a renamed package, apt says what replaced it (promptvault-lite #352):
Package webkit2gtk-driver is not available, but is referred to by another package. However the following packages replace it: webkitgtk-webdriver E: Package 'webkit2gtk-driver' has no installation candidate
For a name that became virtual, it lists the providers and will not pick one (afactory #554):
Package qemu-user-static is a virtual package provided by: qemu-user-binfmt-hwe 1:10.2.1+ds-1ubuntu4.4 qemu-user-binfmt 1:10.2.1+ds-1ubuntu3.3 E: Package 'qemu-user-static' has no installation candidate
apt stops at the first name it cannot install, so after you fix one, the next run can stop at another one from the same list.
If apt does not stop with an error but spends minutes on its downloads, it is the mirror, not 26.04: apt stuck on a slow azure.archive.ubuntu.com.
If apt-get update stops first, with "does not have a Release file", a repository the job added has nothing for 26.04: apt.llvm.org, the ondrej/php PPA and what to use instead.
When apt-get install stops on packages that Ubuntu 26.04 no longer has: Pipeline Inbox for GitHub Actions Workflows, a plugin for JetBrains IDEs, lists the runs of all your repositories with their jobs and steps in an IDE tool window, so the jobs that fail at their install step stand out.
The names that changed
Checked against the Ubuntu archive for noble (24.04) and resolute (26.04):
qemu-user-static→qemu-userandqemu-user-binfmt. On 26.04,qemu-useris the static build, and its programs are namedqemu-aarch64,qemu-riscv64and so on, without-static.qemu-user-binfmtregisters them with the kernel and pulls inqemu-user. What fails next is a script that callsqemu-aarch64-staticby name (go-crdt/collab #254).qemu-kvm→qemu-system-x86, which 24.04 has too (crc-github-action #24).webkit2gtk-driver→webkitgtk-webdriver, for WebDriver tests of Tauri and other WebKitGTK apps. 24.04 has only the old name.liblz4-tool→lz4, which 24.04 has too (ripgrep #3565).libgdk-pixbuf2.0-0→libgdk-pixbuf-2.0-0, often installed for WeasyPrint. 24.04 has the new name too (libsocial-sdk #125).libxml2→libxml2-16, andlibxmlsec1andlibxmlsec1-openssl→libxmlsec1-1andlibxmlsec1-openssl1.libxml2-devandlibxmlsec1-devhave the same names on both and pull in the libraries (open-vtb #218).libicu74→libicu78. Old Playwright versions ask for this one: Playwright on Ubuntu 26.04.gcc-10andg++-10are gone;gcc-11togcc-15are still in apt.clang-14toclang-16andclang-format-14toclang-format-16are gone; 17 and later are still in apt (2ship2harkinian #1997).libpcre3andlibpcre3-dev(PCRE1) are gone, and only PCRE2 (libpcre2-dev) is left. This is not a new name for the same library, so the software has to support PCRE2: libpcre3 and libpcre3-dev on Ubuntu 26.04.libpostproc-devis gone, with no new name: 26.04 has FFmpeg 8.0.1 (24.04 has 6.1.1), and FFmpeg 8.0 removed libpostproc ("Remove libpostproc"). Drop it from the install list if nothing links it; a build that uses it, such as ffpyplayer's, has to stop using it (ffpyplayer #201). The other FFmpeg-devpackages are still there, at 8.0, so code built against them also meets the APIs FFmpeg removed in 7.0 and 8.0.linux-modules-extra-$(uname -r)is not found on the 7.0 azure kernel, which the 24.04 image boots too. The modules are inlinux-modules, which is already installed, so load them withmodprobe: linux-modules-extra on GitHub's Ubuntu runners.
The compilers that come installed changed too, so a job that calls one without installing it can fail with "command not found": the 24.04 image has GCC 12, 13 and 14 and Clang 16, 17 and 18; the 26.04 image has GCC 13, 14 and 15 and Clang 20, 21 and 22 (the Ubuntu 26.04 image readme).
An install step that works on both images
Until November 19 the same job can land on either image. Where the new name exists on 24.04 too (qemu-system-x86, lz4, libgdk-pixbuf-2.0-0, the -dev packages, gcc-14, clang-18), switch to it. Otherwise, branch on the release:
- name: Install QEMU
run: |
. /etc/os-release
if [ "$VERSION_ID" = "26.04" ]; then
sudo apt-get install -y qemu-user qemu-user-binfmt
else
sudo apt-get install -y qemu-user-static
fi
Scripts that call qemu-aarch64-static by name need the name without -static on 26.04. If QEMU is only there for Docker multi-platform builds, docker/setup-qemu-action registers the emulators from a container image and does not use apt at all.
A formatting check is different: each clang-format version formats a little differently, so moving from 14 to 18 can fail the check on code nobody touched. Keep the version from PyPI instead of apt (pipx is on both images):
- run: pipx install clang-format==14.0.6
Then call clang-format instead of clang-format-14.
Finding the new name yourself
Run a job on runs-on: ubuntu-26.04 and ask apt:
apt-cache policy qemu-user-static apt-cache showpkg qemu-user-static apt-cache search --names-only 'webkit.*driver'
showpkg lists what provides a virtual name under "Reverse Provides". You can also search packages.ubuntu.com with the distribution set to resolute, the code name of 26.04. Library packages carry the library's version in their name (libicu78, libxml2-16, libxmlsec1-1), so they change between releases, while -dev packages usually keep theirs.
Or pin the job for now
runs-on: ubuntu-24.04 brings the old names back, as in files-desktop #54 for a clang-format check. It holds until GitHub retires 24.04, so leave a note to come back. Whichever you choose, look at "Set up job": the Runner Image group says ubuntu-26.04 or ubuntu-24.04. A re-run can land on 24.04 and pass until November 19, so a green re-run proves nothing.
Other 26.04 failures
- "does not have a Release file" on Ubuntu 26.04: apt.llvm.org has no clang 17 to 20 for
resoluteand the ondrej/php PPA nothing at all, soapt-get updateexits with code 100; installclang-17from Ubuntu, or move PHP to packages.sury.org. - "conda: command not found" on Ubuntu 26.04: the image has no Miniconda and
CONDAis empty, so steps that add$CONDA/binto the PATH, as GitHub's starter workflow and Microsoft's Azure Pipelines guide do, find no conda; install it with setup-miniconda or Miniforge. - ansible-test 2.22 and devel: "mount -o remount,rw /sys/fs/cgroup/ && pkill sleep" returned exit status 1: on the 7.0 azure kernel of the 24.04 and 26.04 images the default test container often fails to start, and re-runs rarely help; run those jobs on
ubuntu-22.04. - "MongoDB cannot start: Linux kernel versions 6.19 and newer": mongo:8.0 and mongo:8.3 read the 7.0 azure kernel of the 24.04 and 26.04 images as 7.0.0 and exit at startup; use mongo:9.0, or
ubuntu-22.04until 8.0.37 and 8.3.16. - "Unable to locate package linux-modules-extra-7.0.0-1017-azure": Ubuntu publishes no extras package for the 7.0 azure kernel, on the 24.04 and 26.04 images; modules such as
vcanare inlinux-modules, already installed, so skip the install and runmodprobe. - BPF on syscalls:sys_enter_* on GitHub's Ubuntu runners: kernel 7.0.0-1017-azure, on the 24.04 image and on the 26.04 images before the image of November 1 (now 7.0.0-1019-azure), runs these programs on one CPU only, so eBPF tests lose events without an error;
ubuntu-22.04is not affected. - PyCQA/bandit-action on Ubuntu 26.04: the action sets up Python 3.8 (3.9 on v1.0.1) with no input to change it, and setup-python has builds for 26.04 only from 3.10; run Bandit in your own steps.
- wg-quick "Permission denied" on Ubuntu 26.04: new AppArmor profiles let
wg-quickandwgread configuration and key files only under/etc/wireguard/, so awg0.confin the workspace fails even withsudo. - setup-swift on Ubuntu 26.04:
swift-actions/setup-swiftv2 stops with "Version "26.04" of Ubuntu is not supported", and swift.org has 26.04 builds only from Swift 6.4.0; use the image's Swift 6.4.2 or theswiftcontainer. - Docker-in-Docker on Ubuntu 26.04: the legacy iptables modules are not loaded, so a dockerd inside a container that uses
iptables-legacy, such as the dev container docker-in-docker feature:2or:3, fails with "can't initialize iptables table `nat'"; move the feature to:4or load the modules on the runner. - pg_dump 18 on Ubuntu 26.04: PostgreSQL on the image and from apt is 18, so dumps start with
SET transaction_timeout = 0and a PostgreSQL 16 service rejects them with "unrecognized configuration parameter". - "Error: write EINVAL" from every WebdriverIO worker on Ubuntu 26.04: v9 starts workers through
xvfb-run, and the 26.04 one does not pass on the IPC channel; fixed in 9.33.1, which npm'slatesttag does not point to yet. - Postgres never starts in Docker on Ubuntu 26.04: newer kernels such as 7.0.0-42 run container processes as
docker-default//&unconfined, so they cannot signal each other andgosuhangs at 100% CPU; reported on self-hosted runners so far. - "version `GLIBC_2.43' not found" after building on Ubuntu 26.04: glibc is 2.43, so binaries built there can need
GLIBC_2.42orGLIBC_2.43and fail to start on Ubuntu 24.04, Debian 13 and older; build releases on an older image and check the floor in CI. - rpmbuild on Ubuntu 26.04: rpm is 6.0.1, so
%installruns in a per-package build directory and Electron Forge's RPM maker fails with "cp: cannot stat 'usr/*'", and packages are v6 unless you pass_rpmformat 4. - "cannot enable executable stack" on Ubuntu 26.04: glibc 2.43 refuses to
dlopena library that asks for an executable stack, so Julia 1.10.0 to 1.10.8, conda-forge TensorFlow 2.19 and some MEX files fail with "Invalid argument"; clear the flag withpatchelf --clear-execstack. - libpcre3 and libpcre3-dev on Ubuntu 26.04: Ubuntu 26.04 has no PCRE1, so
libpcre3-devis gone from apt and programs built for 24.04 cannot loadlibpcre.so.3; installlibpcre2-devwhere the software supports it. - "disk quota exceeded" in /tmp on Ubuntu 26.04: the first 26.04 images had
/tmpas a tmpfs of about 7.9G with a per-user quota, so large builds in/tmpfailed; setTMPDIRto$RUNNER_TEMP. - setup-beam's "not found in version list" on Ubuntu 26.04: the Erlang/OTP build list for 26.04 starts at OTP 26.0, so OTP 24 and 25 stop at setup, and a setup-beam older than v1.24.1 fails for every OTP.
- C and C++ builds that fail with GCC 15 on Ubuntu 26.04: the default gcc goes from 13 to 15, so C is compiled as C23, six old warnings are errors, and C++ headers no longer pull in
<cstdint>for you. - setup-ruby's "Unavailable version" on Ubuntu 26.04: only some patch releases of each Ruby series are built for 26.04, so a pinned 3.4.2 in
.ruby-versionstops at the Ruby step. - "cannot open shared object file" on Ubuntu 26.04: libxml2 is
libxml2.so.16and ICU is 78, so a cache saved on 24.04, or a binary built for it, cannot findlibxml2.so.2orlibicudata.so.74. - rootless Podman on Ubuntu 26.04: the AppArmor profile of
pastarefuses Podman's SIGTERM, sodocker compose downover the Podman socket fails with "rootless netns: kill network process: permission denied". - "client version ... is too old" on Ubuntu 26.04: Docker 29 refuses clients below API 1.40, so older Testcontainers fails with "Could not find a valid Docker environment".
- kind load docker-image on Ubuntu 26.04: Docker 29's containerd image store keeps one platform of a pulled image, so kind's import fails with "ctr: content digest ... not found".
- /etc/sysctl.conf on Ubuntu 26.04: inotify limits and
vm.mmap_rnd_bitsstay at the kernel defaults, so .NET hosts and kind clusters hit "too many open files" and ThreadSanitizer aborts. - A sandbox inside
bwrapfails, and the 24.04 step that loadedbwrap-userns-restrictfromextra-profilesfinds no file: bubblewrap on Ubuntu 26.04. - A renamed copy of
sleepfails with "coreutils: unknown program", because most core tools are uutils: "coreutils: unknown program" and the other uutils differences. sudo -Eno longer passes your variables, becausesudois sudo-rs: sudo -E on Ubuntu 26.04.- Playwright before 1.61.0 fails to install: Playwright on Ubuntu 26.04.
- "No space left on device" while building images: Docker 29 on 26.04 keeps images in the containerd store ("No space left on device").
See failed jobs 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 and steps, and your current branch's runs are in the status bar. Reading is free; re-running failed jobs, cancelling, running workflows and reviewing deployments are Pro (US$1.50 a month, with a 30-day trial).
Get it on JetBrains Marketplace
GitHub and GitHub Actions are trademarks of GitHub, Inc.; Ubuntu is a trademark of Canonical Ltd.; Docker is a trademark of Docker, Inc.; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with, sponsored or endorsed by GitHub, Inc., Canonical, Docker or JetBrains.
More: "The ubuntu-latest label will migrate to Ubuntu 26" · Playwright on Ubuntu 26.04 · "No space left on device" · GitHub Actions plugins for IntelliJ IDEA compared · 日本語