Score:0

Cannot install kubectl on Ubuntu - GPG Error

fi flag

Hi I'm trying to install kubectl following the native package install instructions on the official site, but I get the following error when I try to update apt package list before installing kubectl:

$ sudo apt update
...
Reading package lists... Done
W: GPG error: https://packages.cloud.google.com/apt kubernetes-xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B53DC80D13EDEF05
E: The repository 'http://apt.kubernetes.io kubernetes-xenial InRelease' is not signed.

What could be the issue? ca-certificates and apt-transport-https are installed.

Score:0
in flag

Assuming you are using the current stable release 22.04, the step 2, Download the Google Cloud public signing key, is missing the gpg --dearmor command that is now needed for signing keys.

Replace step 2 with this command:

curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | \
  sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-archive-keyring.gpg

(shamelessly adapted from the Docker installation instructions)

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.