gcloud 更新组件 - 文件...\kuberun_licenses\LICENSES.txt 的权限被拒绝

标签 gcloud google-cloud-sdk

开始使用 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
  • 我尝试使用 IDEA appEngine 插件。
  • 从具有管理员权限的 CMD 尝试。
    有一些错误

  • 如何更新?
    也许你可以禁用 Kuberun ?我只使用 appengine

    最佳答案

    我通过从“google-cloud-sdk\platform”路径中删除文件夹“kuberun_licenses”解决了这个问题。不是带有“.staging”的那个。

    关于gcloud 更新组件 - 文件...\kuberun_licenses\LICENSES.txt 的权限被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65654890/

    相关文章:

    shell - 使用 gcloud 组件安装时如何设置 kubectl 的路径?

    python - gcloud 函数使用 os.subprocess : [WinError 2] The system cannot find the file specified 进行部署

    python - 属性错误 : module 'importlib' has no attribute 'util'

    docker 找不到 docker :dind + google/cloud-sdk

    google-cloud-platform - Google Cloud SDK 抛出 Reachability Check failed 错误

    gcloud 崩溃(UnicodeEncodeError): 'ascii' codec can't encode character u'\xe7' in position 13: ordinal not in range(128)

    apache - 如何更改 App Engine 项目的本地文件夹?

    gcloud - 我可以自动执行Google Cloud SDK gcloud初始化-交互式命令

    bash - -bash : gcloud: command not found on Mac

    google-cloud-platform - gsutil 重命名从不同目录复制的文件