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

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

问题描述

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

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

我注意到 gcloud components update 会返回此错误

I noticed that gcloud components update retuns this error

错误:(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 components update 命令现在应该可以工作了.

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天全站免登陆