Failed to install google-cloud-sdk-gke-gcloud-auth-plugin

Hi There,

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

Has anyone experienced something similar?

Thank you very much.

3 Likes

Hello @RendyH97 ,

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:

    sudo apt-get install apt-transport-https ca-certificates gnupg
    

Installation steps

Step 1: Add gcloud CLI distribution

Step 2: Acquire the public key

Step 3: Install gcloud

Step 4: Install additional components (optional)

Step 5: Initialize the gcloud CLI

3 Likes

Hi @dionv

After i run this command on Terminal :

  1. Import google public key : curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg

  2. 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

I success to install kubectl with apt-get.

Thank You very Much

3 Likes

Thanks for this solution, works perfectly