Google Cloud SDK install on OS X: (gcloud.components.list) Failed to fetch component listing from server

后端 未结 3 1002
陌清茗
陌清茗 2020-12-29 08:54

I\'m trying to install the Google Cloud SDK (https://cloud.google.com/sdk/docs/quickstart-mac-os-x) and get this error:
ERROR: (gcloud.components.list) Failed to f

3条回答
  •  别那么骄傲
    2020-12-29 09:24

    Disabling ipv6 didn't work for me. I tried a bunch of things before getting it to work. I upgraded to mojave OSX before getting the issues.

    I updated mac headers as mentioned here:

    open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg

    Rebooted then reinstalled python2: brew reinstall python2

    At this point the issue still persisted, decided to reinstall gcloud and came across this: I was using zsh so I added the followin .zshrc:

    source /google-cloud-sdk/path.zsh.inc
    source /google-cloud-sdk/completion.zsh.inc
    

    For bash:

    source /google-cloud-sdk/path.bash.inc
    source /google-cloud-sdk/completion.bash.inc`
    

    Then a gcloud init got me resetting some proxy configuration that was probably the main issue from the start.

提交回复
热议问题