I am facing a weird issue with gcloud component installation on WSL (v1) of my windows 10 system.
» 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) --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
»
I checked the directories - google-cloud-sdk and google-cloud-sdk.staging - I am the owner on both of them. I even switched to root and executed the command, but ended with the same error.
Any pointer would be appreciated.