Skip to content

Build on Ubuntu 24.04, without apt-key - #196

Merged
sarbian merged 1 commit into
masterfrom
ci/ubuntu-24.04
Nov 27, 2026
Merged

sarbian merged 1 commit into
masterfrom
ci/ubuntu-24.04

Conversation

@sarbian

@sarbian sarbian commented Nov 27, 2026

Copy link
Copy Markdown
Owner

The build workflow fails at its first step since ubuntu-latest moved to Ubuntu 26.04: the Mono install uses apt-key, which 26.04 no longer has (sudo: 'apt-key': command not found). Every build since the last green one (master, 2026-09-22, on Ubuntu 24.04) has failed, master included, and so do PR builds such as #195.

  • The build job is pinned to ubuntu-24.04, the image the last passing build ran on. Mono's repository only publishes packages built for Ubuntu 20.04 (stable-focal), which are known to install there.
  • The repository's signing key is fetched over HTTPS from keyserver.ubuntu.com and stored in its own keyring, named by the source with signed-by, as apt expects instead of apt-key. Moving to a newer image later only needs the pin changed.
  • publish-dev installs nothing and stays on ubuntu-latest.

Tested with a manual run of the workflow on this branch: run 45998701666 passed on Ubuntu 24.04.5 with Mono 6.12.0.200 (the same as the last green build), built the solution and uploaded the ModuleManager.4.2.3.dll artifact.

Once this is merged, re-running the checks of open PRs (or pushing to them) picks up the fixed workflow.

ubuntu-latest moved to Ubuntu 26.04, which no longer has apt-key, so the
Mono install failed at its first step and every build since has failed,
master included. The build job is pinned to ubuntu-24.04, the image the
last passing build ran on: Mono's repository only publishes packages
built for 20.04 (focal), known to install there. The repository's signing
key now goes in its own keyring named by the source (signed-by), the way
apt expects it, so moving to a newer image later only needs the pin.
@sarbian
sarbian merged commit 8eaa386 into master Nov 27, 2026
3 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Build Artifact

ModuleManager-6452b24.zip (built from 9e85928)

@sarbian
sarbian deleted the ci/ubuntu-24.04 branch November 27, 2026 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant