Google Cloud SDK Instalation

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








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.










share|improve this question

























    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.










    share|improve this question























      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.










      share|improve this question













      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 14 at 5:37









      Alex

      8310




      8310




















          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:



          1. Add repository for sdk

          2. Add package signing key with apt-key

          3. install appropriate package like sudo apt install google-cloud-sdk





          share|improve this answer




















          • 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










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          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






























          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:



          1. Add repository for sdk

          2. Add package signing key with apt-key

          3. install appropriate package like sudo apt install google-cloud-sdk





          share|improve this answer




















          • 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














          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:



          1. Add repository for sdk

          2. Add package signing key with apt-key

          3. install appropriate package like sudo apt install google-cloud-sdk





          share|improve this answer




















          • 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












          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:



          1. Add repository for sdk

          2. Add package signing key with apt-key

          3. install appropriate package like sudo apt install google-cloud-sdk





          share|improve this answer












          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:



          1. Add repository for sdk

          2. Add package signing key with apt-key

          3. install appropriate package like sudo apt install google-cloud-sdk






          share|improve this answer












          share|improve this answer



          share|improve this answer










          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
















          • 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

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          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













































































          Popular posts from this blog

          pylint3 and pip3 broken

          Missing snmpget and snmpwalk

          How to enroll fingerprints to Ubuntu 17.10 with VFS491