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

On GPG check FAILED recommend using --enableplugin=expired-pgp-keys #2156

Open
FrostyX opened this issue Nov 8, 2024 · 1 comment · May be fixed by #2166
Open

On GPG check FAILED recommend using --enableplugin=expired-pgp-keys #2156

FrostyX opened this issue Nov 8, 2024 · 1 comment · May be fixed by #2166

Comments

@FrostyX
Copy link
Member

FrostyX commented Nov 8, 2024

When DNF fails because of expired GPG keys like this:

error: Verifying a signature using certificate 519B71E71D5251A03A517DF8454724A7D1C452B2 (praiskup_myvpn (None) <praiskup#[email protected]>):
  1. Certificiate 454724A7D1C452B2 invalid: certificate is not alive
      because: The primary key is not live
      because: Expired on 2022-09-02T17:42:01Z
  2. Key 454724A7D1C452B2 invalid: key is not alive
      because: The primary key is not live
      because: Expired on 2022-09-02T17:42:01Z
error: Verifying a signature using certificate 519B71E71D5251A03A517DF8454724A7D1C452B2 (praiskup_myvpn (None) <praiskup#[email protected]>):
  1. Certificiate 454724A7D1C452B2 invalid: certificate is not alive
      because: The primary key is not live
      because: Expired on 2022-09-02T17:42:01Z
  2. Key 454724A7D1C452B2 invalid: key is not alive
      because: The primary key is not live
      because: Expired on 2022-09-02T17:42:01Z

Can we please improve the message to recommend using --enableplugin=expired-pgp-keys or enabling the plugin in /etc/dnf/plugins/expired-pgp-keys.conf? Otherwise, users have no way of discovering that the plugin exists.

By the way, a user enabled the plugin on my recommendation today, and it fixed his issues perfectly.

For the record, here is a step-by-step reproducer
rpm-software-management/dnf5#1192 (comment)

@jan-kolarik
Copy link
Member

Hi @FrostyX, thanks for creating the ticket! I agree that providing such a hint would be beneficial for the users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

Successfully merging a pull request may close this issue.

2 participants