はじめに
新人が来たので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
すれば終わりでした
おわりに
とりあえず英語呼んでエラーが何をいっているのか確認すべきでした