【问题标题】:gcloud sdk fails on yum update fresh centos7 running on GCEgcloud sdk 在 GCE 上运行的 yum 更新新的 centos7 失败
【发布时间】:2017-03-18 00:28:57
【问题描述】:

如果我创建一个 google 计算引擎实例,选择 centos 7 作为镜像,ssh 到该实例,然后运行 ​​yum update -y,我会看到以下错误:

  Updating   : google-cloud-sdk-147.0.0-1.el7.noarch                                                         37/75 
ERROR: gcloud crashed (AttributeError): 'module' object has no attribute 'GetJobDirFlag'

If you would like to report this issue, please run the following command:
  gcloud feedback

To check gcloud for common problems, please run the following command:
  gcloud info --run-diagnostics
Compiling platform/gsutil/third_party/httplib2/python3/httplib2/__init__.py ...
  File "platform/gsutil/third_party/httplib2/python3/httplib2/__init__.py", line 347
    print('%s:' % h, end=' ', file=self._fp)
                        ^
SyntaxError: invalid syntax

warning: %post(google-cloud-sdk-147.0.0-1.el7.noarch) scriptlet failed, exit status 1
Non-fatal POSTIN scriptlet failure in rpm package google-cloud-sdk-147.0.0-1.el7.noarch

我已经尝试了几次,我希望任何人都能 100% 重复。我应该忽略这个错误吗?如果不是,我应该采取什么步骤?我通常是 Fedora 用户,但是 Google Cloud 没有 Fedora 映像,所以我使用 CentOS 作为 CentOS 新手。

【问题讨论】:

    标签: centos centos7 gcloud


    【解决方案1】:

    我重现了这个问题,更新后一切似乎都正常工作,忽略该错误应该是安全的。

    【讨论】:

      猜你喜欢
      • 2014-03-01
      • 1970-01-01
      • 1970-01-01
      • 2013-12-01
      • 2015-02-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-23
      相关资源
      最近更新 更多