gcloud - gcloud 组件安装错误,Windows 10 WSL 1 上的权限被拒绝,即使在使用 sudo 权限执行后也是如此
问题描述
我在 Windows 10 系统的 WSL (v1) 上安装 gcloud 组件时遇到了一个奇怪的问题。
» sudo gcloud components install beta
[sudo] password for <user>:
Your current Cloud SDK version is: 345.0.0
Installing components from version: 345.0.0
┌─────────────────────────────────────────────┐
│ These components will be installed. │
├──────────────────────┬────────────┬─────────┤
│ Name │ Version │ Size │
├──────────────────────┼────────────┼─────────┤
│ gcloud Beta Commands │ 2019.05.17 │ < 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 ═╣
ERROR: (gcloud.components.install) [Errno 13] Permission denied: '<path>/google-cloud-sdk.staging/.install/.download': [<path>/google-cloud-sdk/.install/.download]
Ensure you have the permissions to access the file and that the file is not in use.
(base) --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
»
我检查了目录 - google-cloud-sdk 和 google-cloud-sdk.staging - 我是它们的所有者。我什至切换到 root 并执行了命令,但以同样的错误结束。
任何指针将不胜感激。
解决方案
推荐阅读
- ionic-framework - 构建后,Ionic 在 Android 上的初始屏幕后显示空白屏幕
- python - Gekko 非线性优化,约束函数评估 if 语句中的对象类型错误
- aspnetboilerplate - 使用不同文化时绑定 DateTime 和小数的问题
- c# - 如何使用 LINQ 从地图内的列表中选择?
- css - 如何使用默认选定元素创建 css 'nav'
- python - 如何使用rpy2在R识别为空的熊猫中创建空单元格?
- java - JsonParseException:无法识别的令牌“未经授权”:期待(“真”、“假”或“空”)
- java - 无法找到下拉菜单的元素(写在引导程序中)
- ms-word - 如何使用 Office Web 插件中的函数文件在浏览器窗口中打开外部链接?
- php - 将 POST 数组插入到 mySql 表的多行中的问题