Unable to install K6 on Centos 7

Hi Team,
I’m following the instructions to install Installation and observed the following issue.
Key imported successfully Import of key(s) didn’t help, wrong key(s)? Public key for k6-v0.44.1-amd64.rpm is not installed. Failing package is: k6-0.44.1-1.x86_64 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-k6-io The downloaded packages were saved in the cache until the next successful transaction. You can remove cached packages by executing ‘dnf clean packages’. Error: GPG check FAILED

Then I found this link and followed it to resolve with fedora: package k6-0:0.44.0-1.x86_64 does not verify: Header V4 RSA/SHA512 Signature, key ID b1a69c86: NOTTRUSTED · Issue #3055 · grafana/k6 · GitHub

but still, I couldn’t install it and got the below error Is there any other alternative options to resolve this?

GPG key at file:///etc/pki/rpm-gpg/RPM-GPG-KEY-k6-io (0xD6AC1D69) is already installed The GPG keys listed for the “k6” repository are already installed but they are not correct for this package. Check that the correct key URLs are configured for this repository… Failing package is: k6-0.44.1-1.x86_64 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-k6-io 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

Hi, please see the Troubleshooting page.

You can delete and reinstall the key, but signature verification won’t work on CentOS 7, and you need to install k6 with --nogpgcheck.

2 Likes

Cool!! it worked now…

Thank you very much

  1. sudo dnf install https://dl.k6.io/rpm/repo.rpm
  2. sudo yum install --nogpgcheck k6
1 Like

Actually, it does not help on Fedora 38:

dnf install --nogpgcheck k6
...
Running transaction test
RPM: error: Verifying a signature using certificate C5AD17C747E3415A3642D57D77C6C491D6AC1D69 (k6.io (key for signing binaries) <security@k6.io>):
RPM:   Key C780D0BDB1A69C86 invalid: key is not alive
RPM:       because: The subkey is not live
RPM:       because: Expired on 2023-03-12T10:49:15Z
RPM: error: Verifying a signature using certificate C5AD17C747E3415A3642D57D77C6C491D6AC1D69 (k6.io (key for signing binaries) <security@k6.io>):
RPM:   Key C780D0BDB1A69C86 invalid: key is not alive
RPM:       because: The subkey is not live
RPM:       because: Expired on 2023-03-12T10:49:15Z
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction test error:
  package k6-0:0.45.0-1.x86_64 does not verify: Header V4 RSA/SHA512 Signature, key ID b1a69c86: NOTTRUSTED

Hi @pprischepa

Welcome to the community forum :wave:

For Fedora 38 you should be able to fix it by following fedora: package k6-0:0.44.0-1.x86_64 does not verify: Header V4 RSA/SHA512 Signature, key ID b1a69c86: NOTTRUSTED · Issue #3055 · grafana/k6 · GitHub. You might need to delete the old key C780D0BDB1A69C86 (list the registry and remove all the keys that are not relevant anymore).

I hope this helps.

Cheers!

Excellent, it works. Thank you!

1 Like