Google Cloud SDK Instalation
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
0
down vote
favorite
I'm installing Google Cloud SDK to use it ask my source code repository (for now) for Android apps using the install.sh
script included in the root of the SDK however, I am having a few issues.
First, I'd like to ask if the SDK need not to be under root protected path, let me explain my logic...
When installing without elevated privileges, an exemption is raised.
-Command: $ ./install.sh
-Output:
Traceback (most recent call last):
File "/opt/google-cloud-sdk/bin/bootstrapping/install.py", line 218, in <module>
main()
File "/opt/google-cloud-sdk/bin/bootstrapping/install.py", line 193, in main
Prompts(pargs.usage_reporting)
File "/opt/google-cloud-sdk/bin/bootstrapping/install.py", line 116, in Prompts
scope=properties.Scope.INSTALLATION)
File "/opt/google-cloud-sdk/lib/googlecloudsdk/core/properties.py", line 1830, in PersistProperty
config.EnsureSDKWriteAccess()
File "/opt/google-cloud-sdk/lib/googlecloudsdk/core/config.py", line 192, in EnsureSDKWriteAccess
raise exceptions.RequiresAdminRightsError(sdk_root)
googlecloudsdk.core.exceptions.RequiresAdminRightsError: You cannot perform this action because you do not have permission to modify the Google Cloud SDK installation directory [/opt/google-cloud-sdk].
As it can be seen in the last line, it is clear that this exception was raised because of permissions issue with writing to my chosen installed directory, in this case [/opt/google-cloud-sdk]
.
Now if I run ./install.sh
with elevated privileges I get this warning:
-Command: $ sudo ./install.sh
-Output:
WARNING: You appear to be running this script as root. This may cause
the installation to be inaccessible to users other than the root user.
I chose to ignore this message and continued with the very bumpy installation eventually giving up and coming here.
Before attempting to recreate all the issues encountered, I'd like to, first start on the right path, then if/as issues come up, I'll provide the details.
permissions sudo cloud google sdk
add a comment |Â
up vote
0
down vote
favorite
I'm installing Google Cloud SDK to use it ask my source code repository (for now) for Android apps using the install.sh
script included in the root of the SDK however, I am having a few issues.
First, I'd like to ask if the SDK need not to be under root protected path, let me explain my logic...
When installing without elevated privileges, an exemption is raised.
-Command: $ ./install.sh
-Output:
Traceback (most recent call last):
File "/opt/google-cloud-sdk/bin/bootstrapping/install.py", line 218, in <module>
main()
File "/opt/google-cloud-sdk/bin/bootstrapping/install.py", line 193, in main
Prompts(pargs.usage_reporting)
File "/opt/google-cloud-sdk/bin/bootstrapping/install.py", line 116, in Prompts
scope=properties.Scope.INSTALLATION)
File "/opt/google-cloud-sdk/lib/googlecloudsdk/core/properties.py", line 1830, in PersistProperty
config.EnsureSDKWriteAccess()
File "/opt/google-cloud-sdk/lib/googlecloudsdk/core/config.py", line 192, in EnsureSDKWriteAccess
raise exceptions.RequiresAdminRightsError(sdk_root)
googlecloudsdk.core.exceptions.RequiresAdminRightsError: You cannot perform this action because you do not have permission to modify the Google Cloud SDK installation directory [/opt/google-cloud-sdk].
As it can be seen in the last line, it is clear that this exception was raised because of permissions issue with writing to my chosen installed directory, in this case [/opt/google-cloud-sdk]
.
Now if I run ./install.sh
with elevated privileges I get this warning:
-Command: $ sudo ./install.sh
-Output:
WARNING: You appear to be running this script as root. This may cause
the installation to be inaccessible to users other than the root user.
I chose to ignore this message and continued with the very bumpy installation eventually giving up and coming here.
Before attempting to recreate all the issues encountered, I'd like to, first start on the right path, then if/as issues come up, I'll provide the details.
permissions sudo cloud google sdk
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm installing Google Cloud SDK to use it ask my source code repository (for now) for Android apps using the install.sh
script included in the root of the SDK however, I am having a few issues.
First, I'd like to ask if the SDK need not to be under root protected path, let me explain my logic...
When installing without elevated privileges, an exemption is raised.
-Command: $ ./install.sh
-Output:
Traceback (most recent call last):
File "/opt/google-cloud-sdk/bin/bootstrapping/install.py", line 218, in <module>
main()
File "/opt/google-cloud-sdk/bin/bootstrapping/install.py", line 193, in main
Prompts(pargs.usage_reporting)
File "/opt/google-cloud-sdk/bin/bootstrapping/install.py", line 116, in Prompts
scope=properties.Scope.INSTALLATION)
File "/opt/google-cloud-sdk/lib/googlecloudsdk/core/properties.py", line 1830, in PersistProperty
config.EnsureSDKWriteAccess()
File "/opt/google-cloud-sdk/lib/googlecloudsdk/core/config.py", line 192, in EnsureSDKWriteAccess
raise exceptions.RequiresAdminRightsError(sdk_root)
googlecloudsdk.core.exceptions.RequiresAdminRightsError: You cannot perform this action because you do not have permission to modify the Google Cloud SDK installation directory [/opt/google-cloud-sdk].
As it can be seen in the last line, it is clear that this exception was raised because of permissions issue with writing to my chosen installed directory, in this case [/opt/google-cloud-sdk]
.
Now if I run ./install.sh
with elevated privileges I get this warning:
-Command: $ sudo ./install.sh
-Output:
WARNING: You appear to be running this script as root. This may cause
the installation to be inaccessible to users other than the root user.
I chose to ignore this message and continued with the very bumpy installation eventually giving up and coming here.
Before attempting to recreate all the issues encountered, I'd like to, first start on the right path, then if/as issues come up, I'll provide the details.
permissions sudo cloud google sdk
I'm installing Google Cloud SDK to use it ask my source code repository (for now) for Android apps using the install.sh
script included in the root of the SDK however, I am having a few issues.
First, I'd like to ask if the SDK need not to be under root protected path, let me explain my logic...
When installing without elevated privileges, an exemption is raised.
-Command: $ ./install.sh
-Output:
Traceback (most recent call last):
File "/opt/google-cloud-sdk/bin/bootstrapping/install.py", line 218, in <module>
main()
File "/opt/google-cloud-sdk/bin/bootstrapping/install.py", line 193, in main
Prompts(pargs.usage_reporting)
File "/opt/google-cloud-sdk/bin/bootstrapping/install.py", line 116, in Prompts
scope=properties.Scope.INSTALLATION)
File "/opt/google-cloud-sdk/lib/googlecloudsdk/core/properties.py", line 1830, in PersistProperty
config.EnsureSDKWriteAccess()
File "/opt/google-cloud-sdk/lib/googlecloudsdk/core/config.py", line 192, in EnsureSDKWriteAccess
raise exceptions.RequiresAdminRightsError(sdk_root)
googlecloudsdk.core.exceptions.RequiresAdminRightsError: You cannot perform this action because you do not have permission to modify the Google Cloud SDK installation directory [/opt/google-cloud-sdk].
As it can be seen in the last line, it is clear that this exception was raised because of permissions issue with writing to my chosen installed directory, in this case [/opt/google-cloud-sdk]
.
Now if I run ./install.sh
with elevated privileges I get this warning:
-Command: $ sudo ./install.sh
-Output:
WARNING: You appear to be running this script as root. This may cause
the installation to be inaccessible to users other than the root user.
I chose to ignore this message and continued with the very bumpy installation eventually giving up and coming here.
Before attempting to recreate all the issues encountered, I'd like to, first start on the right path, then if/as issues come up, I'll provide the details.
permissions sudo cloud google sdk
permissions sudo cloud google sdk
asked Mar 14 at 5:37
![](https://lh3.googleusercontent.com/-Ss7TxDnodfA/AAAAAAAAAAI/AAAAAAAAW78/gFpBtevfxMg/photo.jpg?sz=32)
![](https://lh3.googleusercontent.com/-Ss7TxDnodfA/AAAAAAAAAAI/AAAAAAAAW78/gFpBtevfxMg/photo.jpg?sz=32)
Alex
8310
8310
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
I'd recommend installing the binary packages produced by the gcloud team:
https://cloud.google.com/sdk/downloads#apt-get
I hesitate to copy the instructions into here as they change from time to time, but they are roughly:
- Add repository for sdk
- Add package signing key with
apt-key
- install appropriate package like
sudo apt install google-cloud-sdk
Thanks for the link to the Ubuntu/Debian instructions, I must have missed it and chose the "Linux" section instead.
â Alex
Apr 12 at 5:42
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
I'd recommend installing the binary packages produced by the gcloud team:
https://cloud.google.com/sdk/downloads#apt-get
I hesitate to copy the instructions into here as they change from time to time, but they are roughly:
- Add repository for sdk
- Add package signing key with
apt-key
- install appropriate package like
sudo apt install google-cloud-sdk
Thanks for the link to the Ubuntu/Debian instructions, I must have missed it and chose the "Linux" section instead.
â Alex
Apr 12 at 5:42
add a comment |Â
up vote
1
down vote
I'd recommend installing the binary packages produced by the gcloud team:
https://cloud.google.com/sdk/downloads#apt-get
I hesitate to copy the instructions into here as they change from time to time, but they are roughly:
- Add repository for sdk
- Add package signing key with
apt-key
- install appropriate package like
sudo apt install google-cloud-sdk
Thanks for the link to the Ubuntu/Debian instructions, I must have missed it and chose the "Linux" section instead.
â Alex
Apr 12 at 5:42
add a comment |Â
up vote
1
down vote
up vote
1
down vote
I'd recommend installing the binary packages produced by the gcloud team:
https://cloud.google.com/sdk/downloads#apt-get
I hesitate to copy the instructions into here as they change from time to time, but they are roughly:
- Add repository for sdk
- Add package signing key with
apt-key
- install appropriate package like
sudo apt install google-cloud-sdk
I'd recommend installing the binary packages produced by the gcloud team:
https://cloud.google.com/sdk/downloads#apt-get
I hesitate to copy the instructions into here as they change from time to time, but they are roughly:
- Add repository for sdk
- Add package signing key with
apt-key
- install appropriate package like
sudo apt install google-cloud-sdk
answered Apr 6 at 1:29
dpb
4,90911545
4,90911545
Thanks for the link to the Ubuntu/Debian instructions, I must have missed it and chose the "Linux" section instead.
â Alex
Apr 12 at 5:42
add a comment |Â
Thanks for the link to the Ubuntu/Debian instructions, I must have missed it and chose the "Linux" section instead.
â Alex
Apr 12 at 5:42
Thanks for the link to the Ubuntu/Debian instructions, I must have missed it and chose the "Linux" section instead.
â Alex
Apr 12 at 5:42
Thanks for the link to the Ubuntu/Debian instructions, I must have missed it and chose the "Linux" section instead.
â Alex
Apr 12 at 5:42
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1014780%2fgoogle-cloud-sdk-instalation%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password