Skip to content

fix: add Ubuntu 26.04 support by converting GPG key to binary format#48

Closed
vjripoll wants to merge 1 commit into
mainfrom
change-gpg-for-ubuntu-26
Closed

fix: add Ubuntu 26.04 support by converting GPG key to binary format#48
vjripoll wants to merge 1 commit into
mainfrom
change-gpg-for-ubuntu-26

Conversation

@vjripoll

@vjripoll vjripoll commented May 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds support for Ubuntu 26.04 (Resolute) package installation testing.

Problem

Ubuntu 26.04 requires GPG keys in binary format instead of ASCII armored format (similar to Debian Trixie). When using ASCII armored keys, APT shows:

  • The key(s) in the keyring /etc/apt/keyrings/newrelic-infra.gpg are ignored as the file has an unsupported filetype
    This caused package installation to fail with NO_PUBKEY errors.

Solution

Modified molecule/default/converge.yml to:

  1. Convert GPG key to binary format using gpg --dearmor after repo setup
  2. Update APT cache with the fixed key
  3. Only applies to Ubuntu 26.04 via conditional when clause

The fix only executes when:

  • ansible_distribution == "Ubuntu"
  • ansible_distribution_version == "26.04"

@vjripoll vjripoll force-pushed the change-gpg-for-ubuntu-26 branch 2 times, most recently from b63295d to 9ddd088 Compare May 21, 2026 09:01
@vjripoll vjripoll force-pushed the change-gpg-for-ubuntu-26 branch from 9ddd088 to 19a431a Compare May 21, 2026 14:21
@vjripoll vjripoll changed the title fix: gpg for ubuntu 26 fix: Add Ubuntu 26.04 support by converting GPG key to binary format May 21, 2026
@vjripoll vjripoll changed the title fix: Add Ubuntu 26.04 support by converting GPG key to binary format fix: add Ubuntu 26.04 support by converting GPG key to binary format May 21, 2026
@vjripoll vjripoll marked this pull request as ready for review May 21, 2026 15:52
@vjripoll vjripoll closed this May 27, 2026
@vjripoll vjripoll deleted the change-gpg-for-ubuntu-26 branch May 27, 2026 09:57
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