【发布时间】: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 新手。
【问题讨论】: