The GPG keys listed for the "k6" repository are already installed but they are not correct for this package

Hi all,
I’m trying to install k6 onto an aws linux ec2 instance using yum…when I run

sudo yum install https://dl.k6.io/rpm/repo.rpm

I get the below output…assume this is because it’s already been runLoaded plugins: extras_suggestions, langpacks, priorities, update-motd
repo.rpm
Examining /var/tmp/yum-root-cVnWc1/repo.rpm: k6-rpm-0.0.1-1.noarch
/var/tmp/yum-root-cVnWc1/repo.rpm: does not update installed package.
Error: Nothing to do

when I run
sudo yum install k6

I see this…

Downloading packages:
warning: /var/cache/yum/x86_64/2/k6/packages/k6-v0.43.1-amd64.rpm: Header V4 RSA/SHA512 Signature, key ID b1a69c86: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-k6-io 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.43.1-1.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-k6-ioI

'm not completely sure how to resolve this issue, can anyone help? Happy to provide more detail, if requiredThanks in advance

Hi there, welcome to the forum :slight_smile:

Which version of Amazon Linux are you using? If it’s Amazon Linux 2, then you’ll need to install k6 without signature verification. See the details here.

3 Likes

That’s exactly what I needed to do! Thanks so much for the response :slight_smile: