I just created Linux Compute Engine with Ubuntu 22.04 LTS.
I tried to install :
sudo apt-get install google-cloud-sdk-gke-gcloud-auth-plugin
But always failed like this:
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
E: Unable to locate package google-cloud-sdk-gke-gcloud-auth-plugin
This concern was raised in this issue tracker. You check it as a reference. As a workaround they provided to use these steps to follow to make it work.
Pre-requisites
Before the installation of the gcloud CLI, please confirm that the following conditions are met:
The OS release has not reached the end-of-life.
The apt-transport-http package is installed. If not, use the following command to install it:
Add the gcloud CLI distribution URI as a package source : echo “deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main” | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list