开始运行gcloud:
Your current Cloud SDK version is: 321.0.0
You will be upgraded to version: 322.0.0
┌──────────────────────────────────────────────────┐
│ These components will be updated. │
├──────────────────────────┬────────────┬──────────┤
│ Name │ Version │ Size │
├──────────────────────────┼────────────┼──────────┤
│ Cloud SDK Core Libraries │ 2021.01.05 │ 16.1 MiB │
│ Kuberun │ 0.0.1 │ 20.6 MiB │
└──────────────────────────┴────────────┴──────────┘我得到错误:
╠═ Uninstalling: Cloud SDK Core Libraries ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Uninstalling: Kuberun ═╣
ERROR: (gcloud.components.update) Отказано в доступе: [C:\Users\USER_NAME\AppData\Local\Google\ct4j-cloud-sdk\LATEST\google-cloud-sdk.staging\platform\kuberun_licenses\LICENSES.txt]
Ensure you have the permissions to access the file and that the file is not in use.环境: Win10
如何更新?也许你能阻止库伯伦?我只使用应用程序引擎
发布于 2021-03-23 15:24:56
我通过从kuberun_licenses路径中删除文件夹google-cloud-sdk\platform来解决这个问题。不是带.staging的那个。
发布于 2021-01-14 23:16:36
看起来这是一个已知的问题:https://status.cloud.google.com/incident/support/21001
下面是在该链接中提供的解决方法:
--请在PowerShell窗口中运行以下命令:
"$gcloudDir..\google-cloud-sdk.staging\lib\kuberun*.*“$gcloudDir =Get选择-ExpandProperty "Source”拆分路径分割路径attrib -r "$gcloudDir\platform\kuberun_licenses*.*“/s attrib -r "$gcloudDir\lib\kuberun*.*”/s attrib -r -r -r /s attrib -r /s /s Remove-条目“$gcloudDir.\google-cloud-Get.暂存”-Recurse
如果任何命令失败,请继续运行其余的命令。
运行PowerShell脚本后,在常规命令提示符(而不是PowerShell)中运行以下命令:
gcloud组件更新-版本320.0.0
请注意,应用此解决方案后,不要运行“gcloud组件更新”,因为这将重新触发问题。在更新组件之前,请等到补丁发布后再进行更新。
发布于 2021-01-11 07:21:55
我发现只有完全重新安装解决方案:
C:\Users\Step\AppData\Local\Google\ct4j-cloud-sdk
https://stackoverflow.com/questions/65654890
复制相似问题