gcloud component update fails

后端 未结 5 2050
醉酒成梦
醉酒成梦 2021-02-19 15:55

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

5条回答
  •  清歌不尽
    2021-02-19 16:36

    Came here while trying to gcloud components install [x] on a Docker container from google/cloud-sdk and getting the same error (I am probably not the only one on this situation).

    Unfortunately, apt-get install google-cloud-sdk (as suggested on the most upvoted answer) didn't help.

    But the ugly sed on config file did the trick. Dirty but efficient fix (for the moment).

    RUN sed -i -e 's/"disable_updater": true,/"disable_updater": false,/' /usr/lib/google-cloud-sdk/lib/googlecloudsdk/core/config.json
    

提交回复
热议问题