Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

How do I fix the "Google Cloud SDK component manager is disabled for this installation" error?

Writer Matthew Barrera

I just tried to install the Google Cloud SDK on my Ubuntu 19.04 following these instructions.

Specifically I did:

# Create environment variable for correct distribution
CLOUD_SDK_REPO="cloud-sdk-$(grep VERSION_CODENAME /etc/os-release | cut -d '=' -f 2)"
# Add the Cloud SDK distribution URI as a package source
echo "deb $CLOUD_SDK_REPO main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
# Import the Google Cloud Platform public key
curl | sudo apt-key add -
# Update the package list and install the Cloud SDK
sudo apt-get update && sudo apt-get install google-cloud-sdk

And then run gcloud init and followed the process there.

When I now do gcloud components update I get the following error:

ERROR: (gcloud.components.update)
You cannot perform this action because the Cloud SDK component manager
is disabled for this installation.

Any ideas on how this can be fixed?

1 Answer

As the issue was discussed here, try installing google-cloud-sdk from anything other than apt.

1. Remove google-cloud-sdk first:
sudo apt purge --autoremove google-cloud-sdk

2. Then download the correct .tar.gz for your system from and extract it tar -xzf google-cloud-sdk-* to a directory and install it running sudo ./google-cloud-sdk/install.sh.

Restart the terminal session. gcloud components update should work now.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy