1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

GCPでYou cannot perform this action because the Google Cloud CLI component manager is disabled for this installationエラーが出る

Posted at

はじめに

新人が来たのでgcloudの設定をしていたのですが、つまづいたのでまとめます

問題

以下のコマンドを実行したところ

$ gcloud components install anthos-auth

このようなエラーが出ました

ERROR: (gcloud.components.install) 
You cannot perform this action because the Google Cloud CLI component manager 
is disabled for this installation. You can run the following command 
to achieve the same result for this installation: 

sudo apt-get install google-cloud-sdk-anthos-auth

そこで以下をインストールしました

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

そして再度同じコマンドを実行すると同じエラーが出ました

ERROR: (gcloud.components.install) 
You cannot perform this action because the Google Cloud CLI component manager 
is disabled for this installation. You can run the following command 
to achieve the same result for this installation: 

sudo apt-get install google-cloud-sdk-anthos-auth

解決方法

英語を読めばわかります。
意訳すると

componentは使われなくなったのでその代わりに以下のコマンドでインストールすれば同じ結果が得られるよ

なのでapt-get installすれば終わりでした

おわりに

とりあえず英語呼んでエラーが何をいっているのか確認すべきでした

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?