k3s: Installation on CentOS Stream 9 aborts due to failed GPG check
Environmental Info:
Node(s) CPU architecture, OS, and Version: CentOS Stream 9 on x86_64
Describe the bug:
Ran curl -sfL https://get.k3s.io | sh - as root, fails during package installation with:
Downloading Packages:
(1/3): container-selinux-2.183.0-1.el9.noarch.rpm 313 kB/s | 47 kB 00:00
(2/3): policycoreutils-python-utils-3.3-5.el9.noarch.rpm 433 kB/s | 74 kB 00:00
(3/3): k3s-selinux-1.1-1.el8.noarch.rpm 28 kB/s | 20 kB 00:00
----------------------------------------------------------------------------------------------------------------------------------------------
Total 162 kB/s | 142 kB 00:00
Rancher K3s Common (stable) 4.6 kB/s | 2.4 kB 00:00
Importing GPG key 0xE257814A:
Userid : "Rancher (CI) <ci@rancher.com>"
Fingerprint: C8CF F216 4551 26E9 B9C9 18BE 925E A29A E257 814A
From : https://rpm.rancher.io/public.key
Key imported successfully
Import of key(s) didn't help, wrong key(s)?
Problem opening package k3s-selinux-1.1-1.el8.noarch.rpm. Failing package is: k3s-selinux-1.1-1.el8.noarch
GPG Keys are configured as: https://rpm.rancher.io/public.key
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
Steps To Reproduce:
Run curl -sfL https://get.k3s.io | sh - on a CentOS Stream 9 or other RPM distribution.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 3
- Comments: 29 (6 by maintainers)
Steam 8 is definitely not Stream 9 and if it’s broken there, it is soon to be in RHEL, AlmaLinux, and Rocky. CentOS Stream just did you a favor in giving you a heads up for the scope of impact soon for a significant portion of the project’s end users.
Stream 8 is basically EL9 but worse, so yes.
We will address this once our current in-flight releases are complete.
Work around until this is fixed:
Run the script once to get the rancher repo added. Then:
Then run the install script again, this time it’ll go to completion.
Not paranoid, just “aware”, in my job I have to answer to security people and customers if I do things like enable a deprecated crypto algorithm.
When I try and run
dnf install --nogpgcheck k3s-selinuxI getpackages does not verify: Header V4 RSA/SHA1 Signature, key ID e257814a: BAD– this could be due to RHEL 9 deprecating and no longer enabling SHA1 out of the boxAn updated package is now available in the
testingchannel. You should now be able to do: