Skip to content

Pin Microsoft Edge repo to legacy microsoft.gpg key (fix 26.04 signature failure)#279

Open
theneiljohnson wants to merge 1 commit into
masterfrom
neils-updates
Open

Pin Microsoft Edge repo to legacy microsoft.gpg key (fix 26.04 signature failure)#279
theneiljohnson wants to merge 1 commit into
masterfrom
neils-updates

Conversation

@theneiljohnson
Copy link
Copy Markdown
Collaborator

Summary

Follow-up to #274. That PR fixed the $EDGE_GPG_KEY unbound-variable crash by pointing the Microsoft Edge apt repo at $MS_GPG_KEYRING. That removes the crash, but on Ubuntu 26.04+ $MS_GPG_KEYRING resolves to /usr/share/keyrings/microsoft-2025.gpg — a different signing key than the one that actually signs the Edge repo.

The problem on Ubuntu 26.04+

  • The Edge repo (packages.microsoft.com/repos/edge) is signed with the legacy microsoft.asc key.
  • Verified against the live repo: InRelease is a Good signature from key EB3E94ADBE1229CF (legacy microsoft.gpg), not the microsoft-2025 key EE4D7792F748182B.
  • On 26.04+ the script sets MS_GPG_KEYRING=/usr/share/keyrings/microsoft-2025.gpg, so pinning Edge to $MS_GPG_KEYRING makes apt-get update fail Edge signature verification, which aborts the installer under set -e.
  • This is the exact release (26.04) whose testing surfaced the original report.

Fix

Pin the Edge repo to /usr/share/keyrings/microsoft.gpg explicitly on all releases. This matches the script's own existing comment that "The Edge repo uses the older microsoft.asc key on all versions." The microsoft-2025 key is still used for the PMC/portal repo via MS_GPG_KEYRING on 26.04+.

Testing

  • bash -n installer.sh → syntax OK.
  • Confirmed Edge InRelease verifies as a Good signature under the legacy key (EB3E94ADBE1229CF).
  • Ubuntu ≤24.04 unaffected (there MS_GPG_KEYRING already resolves to the legacy keyring); change is a no-op on those releases and corrects 26.04+.

PR #274 fixed the $EDGE_GPG_KEY unbound-variable crash by switching the Edge repo to $MS_GPG_KEYRING. On Ubuntu 26.04+ that variable resolves to /usr/share/keyrings/microsoft-2025.gpg, but the Edge repo (packages.microsoft.com/repos/edge) is signed with the legacy microsoft.asc key (verified: key EB3E94ADBE1229CF). Pinning Edge to MS_GPG_KEYRING therefore breaks 'apt-get update' signature verification on 26.04+, aborting the installer under 'set -e'.

Pin the Edge repo to /usr/share/keyrings/microsoft.gpg explicitly on all releases, matching the script's existing comment that the Edge repo uses the older microsoft.asc key. The microsoft-2025 key remains used for the PMC (portal) repo via MS_GPG_KEYRING.
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