Kakaji
Kakaji

Reputation: 1491

Permission denied error when installing gcloud components

I following the Google Pub/Sub quickstart guide. When I try to run gcloud components install beta I get the error below.

ERROR: (gcloud.components.install) Permission denied: 
[/usr/local/google-cloud-sdk.staging]

Ensure you have the permissions to access the file and that the file is not in use.

How can I fix this?

Upvotes: 5

Views: 6097

Answers (1)

Matthias Baetens
Matthias Baetens

Reputation: 1553

Have you tried to sudo the command? You might not have permission to write to that folder. sudo gcloud components install beta.

Upvotes: 9

Related Questions