gcloud组件更新失败 [英] gcloud component update fails

查看:172
本文介绍了gcloud组件更新失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已在GCE上部署到运行Debian的VM,并具有使用gcloud命令的cron脚本。

I've deployed to VM's running Debian on GCE and have cron scripts that use gcloud commands.

我注意到 gcloud组件会更新恢复此错误


错误:(gcloud.components.update)组件管理器已为此安装禁用

ERROR: (gcloud.components.update) The component manager is disabled for this installation

我的Mac可以很好地更新gcloud和添加新组件。

My mac works fine to update gcloud and add new components.

在VM映像中的gcloud工具中不会更新。我尚未发现如何启用组件管理器。

The built in gcloud tools that were in the VM image won't update. I have not found out how to enable the component manager.

推荐答案

更新



现在,您可以使用 sudo apt-get install google-cloud-sdk 命令安装或更新Google Cloud SDK。

UPDATED

Now you can use sudo apt-get install google-cloud-sdk command to install or update Google Cloud SDK.

您可能需要在Linux机器中添加Cloud SDK存储库。这是说明

You may need to add Cloud SDK repository in your Linux machine. This is the instructions.


组件管理器已在最新映像上启用,并且 gcloud组件更新命令现在应该可以使用。

The component manager is enabled on latest images and gcloud components update command should be working now.

仍然遇到此问题,请使用以下命令启用更新程序:

In case you're still experiencing this issue, use the following command to enable updater:

sudo sed -i -e 's/true/false/' /usr/lib/google-cloud-sdk/lib/googlecloudsdk/core/config.json

这篇关于gcloud组件更新失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆