【问题标题】:gcloud util installation crashed on Windows 10gcloud util 安装在 Windows 10 上崩溃
【发布时间】:2021-09-16 16:42:23
【问题描述】:

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

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

【问题讨论】:

  • 在 Windows 10 上,不会相对于用户的主目录路径安装 CLI。我建议卸载并重新启动系统。然后安装当前版本。但是,错误symbolic link privilege not held 表示用户没有权限或文件系统不支持该功能。您的系统可能不止一个问题。
  • 运行gpedit.msc。计算机配置→Windows设置→安全设置→本地策略→用户权限分配→创建符号链接的设置是什么

标签: google-cloud-platform gcloud google-cloud-sdk


【解决方案1】:

我建议你先卸载cloud sdk再重新安装,有时大部分错误会通过重新安装解决。参考this文档卸载。你可以参考this文档安装它。并使用任何这种方法来ssh

【讨论】:

  • 谢谢。按照你说的重新安装解决了。我似乎搞砸了安装。
【解决方案2】:

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

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

【讨论】:

    猜你喜欢
    • 2017-08-11
    • 1970-01-01
    • 1970-01-01
    • 2019-03-01
    • 2022-06-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多