I am trying to install several GCP components from the gcloud command-line tool and always get the same error:
$ gcloud components list
Your current Cloud S
To add some more context to this answer for the Ubuntu OS, these are the steps that I took when I had already installed google-cloud-sdk using the apt-get package manager
Remove the existing installation using
sudo apt-get remove google-cloud-sdk
Navigate to
https://cloud.google.com/sdk/docs/quickstart-linux and follow the steps to download the correct tar.gz package for your system
Navigate to the download directory and unzip the archive using
tar -zxf google-cloud-sdk-*
Install the SDK using
./google-cloud-sdk/install.sh
Make the gcloud command available by either:
source ~/.bashrc orUsing this installation I was then able to update and install kubectl with the following commands
gcloud components update
gcloud components install kubectl