GCP - 執行 gcloud components update 報錯 ERROR: 'cannot perform this action because the Google Cloud CLI component manager'
Published in:2023-05-06 | category: GCP

ERROR: (gcloud.components.update)

You cannot perform this action because the Google Cloud CLI component manager

is disabled for this installation



解決方法 ( 將 google-cloud-sdk 重新安裝 )


yum remove google-cloud-sdk

curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-434.0.0-linux-x86_64.tar.gz

tar zxvf google-cloud-cli-434.0.0-linux-x86_64.tar.gz 

cd google-cloud-sdk/

./install.sh 

source ~/.bashrc

查看版本 && 再運行一次 update


gcloud --version

gcloud components update




Prev:
GCP - 安裝內建監控 Ops agent 代理
Next:
HUGO - 報錯 ERROR-panic: mkdir /tmp/hugo_cache: no such file or directory