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

[BUG] yum/dnf repo gpg key uses sha1 #7257

Closed
mnasiadka opened this issue Apr 20, 2023 · 1 comment
Closed

[BUG] yum/dnf repo gpg key uses sha1 #7257

mnasiadka opened this issue Apr 20, 2023 · 1 comment
Labels
bug Something isn't working untriaged

Comments

@mnasiadka
Copy link

Describe the bug
yum/dnf repo gpg key uses sha1 - that's not supported in RHEL9 and derivatives

To Reproduce
Steps to reproduce the behavior:

  1. Add yum/dnf repo

[opensearch-2.x]
name=OpenSearch 2.x
baseurl=https://artifacts.opensearch.org/releases/bundle/opensearch/2.x/yum
enabled=1
repo_gpgcheck=1
gpgcheck=1
gpgkey=https://artifacts.opensearch.org/publickeys/opensearch.pgp
autorefresh=1
type=rpm-md

  1. Install opensearch package using dnf
    dnf install opensearch

  2. See error
    Downloading Packages:
    opensearch-2.6.0-linux-x64.rpm 523 kB/s | 675 MB 22:01


Total 523 kB/s | 675 MB 22:01
OpenSearch 2.x 6.3 kB/s | 3.1 kB 00:00
Importing GPG key 0x9310D3FC:
Userid : "OpenSearch project [email protected]"
Fingerprint: C5B7 4989 65EF D1C2 924B A9D5 39D3 1987 9310 D3FC
From : https://artifacts.opensearch.org/publickeys/opensearch.pgp
Is this ok [y/N]: y
warning: Signature not supported. Hash algorithm SHA1 not available.
Key import failed (code 2). Failing package is: opensearch-2.6.0-1.x86_64
GPG Keys are configured as: https://artifacts.opensearch.org/publickeys/opensearch.pgp
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: GPG check FAILED

Expected behavior
Package installs.

Host/Environment (please complete the following information):

  • OS: Rocky Linux
  • Version 9

Additional context
Add any other context about the problem here.

@mnasiadka mnasiadka added bug Something isn't working untriaged labels Apr 20, 2023
@mnasiadka
Copy link
Author

Duplicate - found opensearch-project/opensearch-build#3124

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged
Projects
None yet
Development

No branches or pull requests

1 participant