Skip to content

Fix Microsoft Edge install on Ubuntu 26.04 in Linux Intune Installer#265

Open
theneiljohnson wants to merge 1 commit intomicrosoft:masterfrom
theneiljohnson:fix-linux-installer-edge-key-2604
Open

Fix Microsoft Edge install on Ubuntu 26.04 in Linux Intune Installer#265
theneiljohnson wants to merge 1 commit intomicrosoft:masterfrom
theneiljohnson:fix-linux-installer-edge-key-2604

Conversation

@theneiljohnson
Copy link
Copy Markdown
Collaborator

Summary

Fixes a regression introduced in #252 (release 2026-04-23) that breaks Microsoft Edge installation on Ubuntu 26.04+.

The bug

The previous release wrote the selected Microsoft signing key to a single fixed path:

/usr/share/keyrings/microsoft.gpg

On Ubuntu 26.04+ this overwrote the legacy microsoft.asc key with the newer microsoft-2025.asc key. But the Microsoft Edge apt repo (packages.microsoft.com/repos/edge) is still signed with the legacy key on every Ubuntu release, and our Edge sources.list.d entry hard-codes signed-by=/usr/share/keyrings/microsoft.gpg. Result: apt-get update fails GPG verification on the Edge repo, and microsoft-edge-stable cannot install on 26.04.

The fix

  • Always import microsoft.asc to /usr/share/keyrings/microsoft.gpg so the Edge repo verifies on every supported Ubuntu release.
  • On Ubuntu 26.04+, additionally import microsoft-2025.asc to /usr/share/keyrings/microsoft-2025.gpg (separate file, no overwrite).
  • New MS_GPG_KEYRING variable points the PMC repo's signed-by= at the correct keyring per release:
    • Ubuntu 26.04+ \u2192 /usr/share/keyrings/microsoft-2025.gpg
    • Ubuntu 22.04 / 24.04 \u2192 /usr/share/keyrings/microsoft.gpg
  • Edge's signed-by= is unchanged (still legacy microsoft.gpg), which is now correct on 26.04+ too.
  • Header Recent changes block updated.

Scope

  • Single file: Linux/Intune Installer/installer.sh
  • RHEL / AlmaLinux branch is untouched.
  • No CLI flags, log paths, or repo enrollment behaviour change.

Testing

  • bash -n syntax check passes.
  • Behaviour validated by re-reading the apt key/repo flow against packages.microsoft.com signing key assignments per release.

The 2026-04-23 release wrote the selected Microsoft signing key to a single
fixed path (/usr/share/keyrings/microsoft.gpg). On Ubuntu 26.04+ this
overwrote the legacy microsoft.asc key with the newer microsoft-2025.asc key,
which broke GPG verification for the Microsoft Edge apt repo (still signed
with the legacy key on every Ubuntu release).

Changes:
  - Always import microsoft.asc to /usr/share/keyrings/microsoft.gpg so the
    Edge repo verifies on every supported Ubuntu release.
  - On Ubuntu 26.04+, additionally import microsoft-2025.asc to
    /usr/share/keyrings/microsoft-2025.gpg (separate file, no overwrite).
  - New MS_GPG_KEYRING variable points the PMC repo's signed-by= at the
    correct keyring per release.
  - RHEL/AlmaLinux path unchanged.
  - Header 'Recent changes' block updated.
@adhuston
Copy link
Copy Markdown

adhuston commented May 6, 2026

I'm seeing the same issue in my testing. Ubuntu 24.04 runs successfully, though.

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.

2 participants