gcloud component update fails

Andrew MacKay picture Andrew MacKay · Jan 24, 2015 · Viewed 14.8k times · Source

I've deployed to VM's running Debian on GCE and have cron scripts that use gcloud commands.

I noticed that gcloud components update retuns this error

ERROR: (gcloud.components.update) The component manager is disabled for this installation

My mac works fine to update gcloud and add new components.

The built in gcloud tools that were in the VM image won't update. I have not found out how to enable the component manager.

Answer

Kamran picture Kamran · Feb 19, 2016

UPDATED

Now you can use sudo apt-get install google-cloud-sdk command to install or update Google Cloud SDK.

You may need to add Cloud SDK repository in your Linux machine. This is the instructions.


Note: The following workaround should not be used anymore.

The component manager is enabled on latest images and gcloud components update command should be working now.

In case you're still experiencing this issue, use the following command to enable updater:

sudo sed -i -e 's/true/false/' /usr/lib/google-cloud-sdk/lib/googlecloudsdk/core/config.json