Kubernetes: Failed to fetch https://packages.cloud.google.com/apt/dists/kubernetes-xenial/main/binary-arm64

Hi,

I am trying to deploy kubernetes (kubeadm cluster) on ARM64 based Ubuntu 20.04 virtual machine.

I am getting the following error when deploying kubeadm:

admin@controller01:~$ sudo mkdir -p /etc/apt/keyrings/
admin@controller01:~$ curl -fsSL https. :  //.  packages . cloud . google. com /apt/doc/apt-key.gpg | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-archive-keyring.gpg
admin@controller01:~$ echo "deb [signed-by=/etc/apt/keyrings/kubernetes-archive-keyring.gpg] https : // apt . kubernetes . io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list
deb [signed-by=/etc/apt/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main
admin@controller01:~$ sudo apt-get update
Hit:1 http : // ae . ports . ubuntu . com /ubuntu-ports focal InRelease
Hit:2 http : // ae . ports . ubuntu . com /ubuntu-ports focal-updates InRelease
Hit:3 http : // ae . ports . ubuntu.com/ubuntu-ports focal-backports InRelease
Hit:4 http : // ae.ports.ubuntu.com/ubuntu-ports focal-security InRelease
Get:5 https : // packages.cloud . google . com /apt kubernetes-xenial InRelease [8993 B]
Ign:6 https : // packages.cloud . google . com /apt kubernetes-xenial/main arm64 Packages
Ign:6 https : // packages . cloud.google . com /apt kubernetes-xenial/main arm64 Packages
Ign:6 https : // packages . cloud.google . com /apt kubernetes-xenial/main arm64 Packages
Err:6 https : // packages . cloud . google. com /apt kubernetes-xenial/main arm64 Packages
  404  Not Found [IP: 142.250.181.110 443]
Fetched 8993 B in 6s (1622 B/s)
Reading package lists... Done
E: Failed to fetch https : // packages.cloud.google.com/apt/dists/kubernetes-xenial/main/binary-arm64/by-hash/SHA256/51aebd1541ac7598ec1899940eeb94254bffdec2718eec413337389a0d58c794  404  Not Found [IP: 142.250.181.110 443]
E: Some index files failed to download. They have been ignored, or old ones used instead.

This error happens when I deploy kubernetes on ARM64 architecture CPU.

Any help please?

1 Like