gcloud util 安装在 Windows 10 上崩溃

gcloud util installation crashed on Windows 10

我想在 Windows 10 Home 上安装 gcloud ssh 组件,以便 ssh GCE 实例。但它未能显示以下消息。

Your current Cloud SDK version is: 347.0.0
Installing components from version: 347.0.0

These components will be installed.

Name: gcloud Beta Commands
Version: 2019.05.17
Size: < 1 MiB

For the latest full release notes, please visit:
  https://cloud.google.com/sdk/release_notes

Do you want to continue (Y/n)?  y

Creating update staging area
10%
(snip)
100%
100%
ERROR: gcloud crashed (Error): [('C:\Users\tafut\gcloud\google-cloud-sdk\platform\gsutil\third_party\funcsigs\docs\index.rst', 'C:\Users\tafut\gcloud\google-cloud-sdk.staging\platform\gsutil\third_party\funcsigs\docs\index.rst', 'symbolic link privilege not held'), ('C:\Users\tafut\gcloud\google-cloud-sdk\platform\gsutil\third_party\mock\docs\changelog.txt', 'C:\Users\tafut\gcloud\google-cloud-sdk.staging\platform\gsutil\third_party\mock\docs\changelog.txt', 'symbolic link privilege not held')]

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

这里是安装的 gcloud 版本。

$ gcloud version
Google Cloud SDK 347.0.0
bq 2.0.69
core 2021.06.25
gsutil 4.64

建议您卸载cloud sdk后重新安装一次,有时大部分错误都可以通过重新安装解决。refer this documentation to uninstall.you can refer this documentation for installing it. and use any of this methods to ssh

我在 Windows 中使用来自“Git bash”的 gcloud 命令。即使我以“运行 作为管理员”打开“Git bash”,gcloud 也会崩溃。

相反,我打开了 Google Cloud SDK Shell(我仍然使用“运行 作为管理员”),并且 gcloud 命令没有崩溃。