如果我创建了一个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用户,但谷歌云没有fedora图像所以我使用CentOS作为CentOS新手。
答案 0 :(得分:3)
我重现了问题,更新后一切似乎都正常工作,忽略错误应该是安全的。