Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trusted.gpg deprecation in future Ubuntu versions #77

Open
dcruzrinkel opened this issue Mar 11, 2024 · 0 comments
Open

Trusted.gpg deprecation in future Ubuntu versions #77

dcruzrinkel opened this issue Mar 11, 2024 · 0 comments
Labels
enhancement Feature Improvements

Comments

@dcruzrinkel
Copy link

Summary

W: https://download.newrelic.com/infrastructure_agent/linux/apt/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

Ubuntu 24.04 will be released next April and it will include a deprecation for the trusted.gpg files.

Desired Behavior

GPG keys should be included in /usr/share/keyrings or /etc/apt/keyrings and then included in the repo file.

deb [signed-by=/etc/apt/trusted.gpg.d/GPGkey] https://whatever_repo stable main

About the right location for GPG keys.

/usr/share/keyrings for keyrings managed by packages, and /etc/apt/keyrings for keyrings managed by the system operator.

Possible Solution

  • Download GPG key to /usr/share/keyrings and reference it in newrelic repo file. Or download it to a temporal folder and import it with gpg --no-default-keyring --keyring gnupg-ring:/tmp/newrelic-infra.gpg --import

Additional context

We receive a warning right now, but in a couple of months this will be mandatory when updating. The updated method will also work (at least) in Ubuntu 22.04.

@dcruzrinkel dcruzrinkel added the enhancement Feature Improvements label Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature Improvements
Projects
None yet
Development

No branches or pull requests

1 participant