gcloud sdk 在 GCE 上的 yum update fresh centos7 运行 上失败
gcloud sdk fails on yum update fresh centos7 running on GCE
如果我创建一个 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 新手。
我重现了这个问题,更新后似乎一切正常,忽略错误应该是安全的。
如果我创建一个 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 新手。
我重现了这个问题,更新后似乎一切正常,忽略错误应该是安全的。