我无法在Ubuntu上启动Google Cloud SDK [英] I cant init Google Cloud SDK on Ubuntu

查看:184
本文介绍了我无法在Ubuntu上启动Google Cloud SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Ubuntu上下载了适用于python的Google Cloud SDK. ( https://cloud.google.com/sdk/docs/quickstart-linux#before-you-begin )

I downloaded Google Cloud SDK for python on my Ubuntu. (https://cloud.google.com/sdk/docs/quickstart-linux#before-you-begin)

然后我按照页面上的步骤操作,但是当我运行时

Then I followed the steps from the page but when I run

gcloud init

我明白了

无法在/home/ariel/.config/gcloud/logs中设置日志文件,(IOError: [Errno 13]权限被拒绝: '/home/ariel/.config/gcloud/logs/2016.05.25/11.54.37.438036.log') 欢迎!此命令将带您完成以下配置 gcloud.

Could not setup log file in /home/ariel/.config/gcloud/logs, (IOError: [Errno 13] Permission denied: '/home/ariel/.config/gcloud/logs/2016.05.25/11.54.37.438036.log') Welcome! This command will take you through the configuration of gcloud.

错误:(gcloud.init)无法创建默认配置. 确保您对以下内容拥有正确的权限: [/home/ariel/.config/gcloud/configurations].无法建立 目录[/home/ariel/.config/gcloud/configurations]:权限 否认.

ERROR: (gcloud.init) Failed to create the default configuration. Ensure your have the correct permissions on: [/home/ariel/.config/gcloud/configurations]. Could not create directory [/home/ariel/.config/gcloud/configurations]: Permission denied.

请确认您具有写给家长的权限 目录.

Please verify that you have permissions to write to the parent directory.

PS:然后,我找到了另一个文件 https://cloud .google.com/appengine/downloads#Google_App_Engine_SDK_for_Python (似乎相同,但它是40.2MB,而我使用的是7.5MB )

PS: Then I found this other file https://cloud.google.com/appengine/downloads#Google_App_Engine_SDK_for_Python (seems to be the same but it is 40.2MB and the one I used was 7.5MB)

谢谢! 爱丽儿

推荐答案

用户 gcbirzan 在irc频道(我建议)上回答了我的问题,该频道是 #appengine irc.freenode.net

The user gcbirzan responded my questions at an irc channel (which I recommend), it is #appengine on irc.freenode.net

我必须运行它:

sudo chown ariel -R /home/ariel/.config/gcloud

我还将聊天记录留在这里:

I also leave the transcription of the chat here:

[14:12] 问:您好

[14:13] 问:我只是在乞讨应用程序引擎,例如,任何人都可以告诉我该文件之间的区别是什么((( https://cloud.google.com/appengine/downloads#Google_App_Engine_SDK_for_Python ))(似乎相同,但它是40.2MB,而我使用的是7.5MB)

[14:13] Q: I am just beggining with app engine, and for instance, anyone could tell me what is the difference between this file((https://cloud.google.com/sdk/docs/quickstart-linux#before-you-begin)) and this one ((https://cloud.google.com/appengine/downloads#Google_App_Engine_SDK_for_Python)) (seems to be the same but it is 40.2MB and the one I used was 7.5MB)

[14:15] A: Google Cloud SDK是gcloud和朋友,您需要Flex和其他Google Cloud Platform东西.

[14:15] A: Google cloud sdk is gcloud and friends, you need it for flex and other google cloud platform stuff.

[14:15] A: appengine sdk是本地开发服务器和所有其他东西附带的,可能是您想要的

[14:15] A: The appengine sdk is the one that comes with a local dev server and all the other stuff, and is probably what you want

[14:15] A:.疯狂,两者都得到

[14:15] A: well. go wild, get both

[14:16] 问:确定

[14:16] Q: ok

[14:16] 问题:谢谢

[14:16] Q: thanks

[14:16] 问:,您能帮我吗? 我无法在Ubuntu上启动Google Cloud SDK

[14:16] Q: and could you please help me with this ? I cant init Google Cloud SDK on Ubuntu

[14:17] A: sudo chown ariel -R/home/ariel/.config/gcloud

[14:17] A: sudo chown ariel -R /home/ariel/.config/gcloud

[14:19] 问:有效!

[14:19] Q: it works !

这篇关于我无法在Ubuntu上启动Google Cloud SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆