Version '1.27.0-00' for 'kubectl' was not found

While going through the “practice-test-cluster-installation-using-kubeadm” CKA Lab

My task was to setup a test cluster using kubeadm.

While installing kubeadm & kubectl for version 1.27.0-00. I followed the steps mentioned in the page :

But when I am running bellow command, I am facing the error
“sudo apt-get install -y kubelet=1.27.0-00 kubeadm=1.27.0-00 kubectl=1.27.0-00”

It is an issue with the setup of the images used in this lab. I’ve raised an internal ticket, however you can get it to work by running the following commands on each of controlplane and worker node prior to performing the commands you know from the course.

mkdir -p /etc/apt/keyrings
curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | gpg --dearmor -o /etc/apt/keyrings/kubernetes-archive-keyring.gpg
echo "deb [signed-by=/etc/apt/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main" > /etc/apt/sources.list.d/kubernetes.list
apt-get update

Note that you don’t need to use sudo anywhere. You are already root in the lab.

Initially i had this issue. after some research I found the documentation is here: Kubernetes Documentation | Kubernetes

I did this but it doesn’t work

Do it exactly as on the solution tab. It will work

Is this google repo searchable via official documentation?! I am unable to find it.
If its no searchable t then it puts up questions if this lab is applicable for helping exam preparation.

EDIT:

In german version of documentation there exists full repo path to be used.

And English

There is no repo of “packages.cloud.google.com” in English version.

Since this thread was created, Kubernetes has moved its package repos.

See this heading on the updated version of the same page posted above.