Lesstep
GitHub Actions · Ubuntu · Checked November 4, 2026

"Unable to locate package linux-modules-extra-7.0.0-1017-azure" on GitHub's Ubuntu runners

A step that installs linux-modules-extra-$(uname -r) before a modprobe stops at apt. Since image 20261018 the ubuntu-24.04 image boots kernel 7.0.0-1017-azure instead of 6.17.0-1022-azure, and ubuntu-26.04, which ubuntu-latest is moving to, has a 7.0 kernel too. Ubuntu is retiring the separate linux-modules-extra package (Ubuntu's announcement, July 2025), and for the 7.0 azure kernels it publishes none, in 24.04 or in 26.04. The modules it used to hold are now in linux-modules-7.0.0-1017-azure, which comes with the kernel.

What it looks like

E: Unable to locate package linux-modules-extra-7.0.0-1017-azure
E: Couldn't find any package by glob 'linux-modules-extra-7.0.0-1017-azure'
E: Couldn't find any package by regex 'linux-modules-extra-7.0.0-1017-azure'
##[error]Process completed with exit code 100.

The version in the message is the kernel the job booted, so a newer image can show another 7.0 version, such as 7.0.0-1019-azure. A re-run no longer helps: the runner-images maintainers said on November 3 that the latest 24.04 image, 20261101.360, has the same kernel.

Where the reports came from

Fix: install the extras only on older kernels, then load the module

- name: Load the vcan module
  run: |
    kernel="$(uname -r)"
    if (( ${kernel%%.*} < 7 )); then
      sudo apt-get update
      sudo apt-get install --yes "linux-modules-extra-${kernel}"
    fi
    sudo modprobe vcan

This is the check the runner-images maintainers suggest, with the modprobe you already had after it. On a 7.0 kernel it skips apt, and modprobe finds the module in linux-modules. On an image that still has 6.17 it installs the extras as before. Another way is to run modprobe first and install the extras only if it fails.

For a script that names the package directly, such as a setup script in your repository, apply the same check there. Pinning ubuntu-24.04 does not help: that is one of the images with the new kernel.

Telling it apart

Other 26.04 failures

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.; Linux is the registered trademark of Linus Torvalds; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with, sponsored or endorsed by GitHub, Inc., Canonical, the Linux Foundation or JetBrains.

More: "The ubuntu-latest label will migrate to Ubuntu 26" · apt on Ubuntu 26.04 · GitHub Actions plugins for IntelliJ IDEA compared · 日本語