I am unable to upgrade the kubeadm tool. When running apt-update, I receive the error listed below. There appears to be an issue with the signature for the repository. Can someone please resolve.
Reading package lists… Done
W: GPG error: https://prod-cdn.packages.k8s.io/repositories/isv:/kubernetes:/core:/stable:/v1.31/deb InRelease: The following signatures were invalid: EXPKEYSIG 234654DA9A296436 isv:kubernetes OBS Project >
E: The repository ‘https://pkgs.k8s.io/core:/stable:/v1.31/deb InRelease’ is not signed.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Clearly you need to install the key. Please take a look at this article from our FAQ archive; it will tell you how to set up APT for these installs.
Hi Rod,
That article does not resolve this issue. Shortly after I made the post, I found that the step that I listed below will need to be run additionally.
This step will need to be run before the apt update for it to work correctly in my environment.
curl -fsSL “https://pkgs.k8s.io/core:/stable:/v1.31/deb/Release.key” | gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
However, thank you for your fast response. Also, it would be great to either update the lab or documentation with this information accordingly.
Thanks!
Actually, if you check the Demo video @3:48, you’ll see that the step is mentioned there.