kubernetes: bug: RPM repo PGP check fails

What happened: When trying to upgrade package using official Yum repo this occurs:

Running transaction
Transaction failed: Signature verification failed.
PGP check for package "kubectl-1.31.3-150500.1.1.x86_64" (/var/cache/libdnf5/kubernetes-3d554b2ea1b53740/packages/kubectl-1.31.3-150500.1.1.x86_64.rpm) from repo "kubernetes" has failed: Problem occurred when opening the package.

What you expected to happen: Update succeeds and package installed.

How to reproduce it (as minimally and precisely as possible):

Add repo following https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/#install-using-native-package-management and try to update RPM package.

Anything else we need to know?: It worked until now.

Environment:

  • Kubernetes client and server versions (use kubectl version): kubectl-1.31.3-150500.1.1.x86_64
  • Cloud provider or hardware configuration: n/a/
  • OS (e.g: cat /etc/os-release): Fedora Linux 41

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 7
  • Comments: 17 (7 by maintainers)

Most upvoted comments

See: https://github.com/kubernetes/release/issues/3818#issuecomment-2491291086

I believe this is already tracked in kubernetes/release there with a workaround linked above, but the title only referenced APT, which I’ve updated (the discussion covers both).

Thanks @BenTheElder ! Your workaround sorted it out. Should we add this to the docs as well, as I expect a lot of people will hit this and it’s probably not intended behaviour?