安装gcloud组件时权限被拒绝错误

问题描述 投票:2回答:1

我关注Google Pub / Sub快速入门guide。当我尝试运行gcloud components install beta时,我收到以下错误。

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.

我怎样才能解决这个问题?

google-cloud-platform
1个回答
1
投票

你试过sudo命令吗?您可能没有权限写入该文件夹。 sudo gcloud components install beta

© www.soinside.com 2019 - 2024. All rights reserved.