简体   繁体   English

google-cloud-sdk install ERROR: (gcloud.components.update) 提供的路径必须存在

[英]google-cloud-sdk install ERROR: (gcloud.components.update) The provided path must exist

I have tried installing google-cloud-sdk on a mac OS 10 via the command line and homebrew and I get the same error.我尝试通过命令行和自制软件在 mac OS 10 上安装 google-cloud-sdk,但我得到了同样的错误。

ERROR: (gcloud.components.update) The provided path must exist.错误:(gcloud.components.update)提供的路径必须存在。

I don't understand how the path could be missing if I am downloading a zipped file, extracting it and running the install script.我不明白如果我正在下载压缩文件、解压缩并运行安装脚本,路径会如何丢失。 What more can I do to get the install to work?我还能做些什么来让安装正常工作?

I have tried various work-arounds.我尝试了各种解决方法。 I have upgraded homebrew.我已经升级了自制软件。 Used various sudo commands.使用了各种 sudo 命令。 And I still get the same error.我仍然得到同样的错误。

Output from homebrew install below: Output 来自 homebrew 安装如下:

○ → brew install --cask google-cloud-sdk
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
gnupg@2.2
==> Updated Formulae
Updated 1 formula.
==> Updated Casks
Updated 13 casks.

==> Caveats
google-cloud-sdk is installed at /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk. Add your profile:

  for bash users
    source "/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.bash.inc"
    source "/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.bash.inc"

  for zsh users
    source "/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc"
    source "/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc"

  for fish users
    source "/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.fish.inc"

==> Downloading https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz
Already downloaded: /Users/wxc3426/Library/Caches/Homebrew/downloads/cda39f18c3069c1a4ac0cd5b1d91541af945cd331eba8443c58ec5c890343c0a--google-cloud-sdk.tar.gz
Warning: No checksum defined for cask 'google-cloud-sdk', skipping verification.
All formula dependencies satisfied.
==> Installing Cask google-cloud-sdk
Beginning update. This process may take several minutes.
ERROR: (gcloud.components.update) The provided path must exist.
==> Purging files for version latest of Cask google-cloud-sdk
Error: Failure while executing; `/usr/bin/env CLOUDSDK_PYTHON=/usr/local/opt/python@3.9/bin/python3 /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/install.sh --usage-reporting false --bash-completion false --path-update false --rc-path false --quiet` exited with 1. Here's the output:
Welcome to the Google Cloud SDK!
Beginning update. This process may take several minutes.
ERROR: (gcloud.components.update) The provided path must exist.

This will install all the core command line tools necessary for working with
the Google Cloud Platform.

Regarding the steps that wooper and Dondi posted, here could be a possible answer:关于wooper和Dondi发布的步骤,这可能是一个可能的答案:

Follow these steps at least until 2c, and if a permission error is shown, is very likely that ~/.config/gcloud is only accessible by root.至少遵循这些步骤直到 2c,如果显示权限错误,很可能~/.config/gcloud只能由 root 访问。

If after running ./google-cloud-sdk/bin/gcloud init you get the following error:如果在运行./google-cloud-sdk/bin/gcloud init后出现以下错误:

ERROR: Reachability Check failed.错误:可达性检查失败。 Cannot reach dl.google.com/dl/cloudsdk/channels/rapid/components-2.json with httplib2 (SSLCertVerificationError) Cannot reach dl.google.com/dl/cloudsdk/channels/rapid/components-2.json with requests (SSLError) Network connection problems may be due to proxy or firewall settings.无法使用 httplib2 访问 dl.google.com/dl/cloudsdk/channels/rapid/components-2.json (SSLCertVerificationError) 无法使用请求访问 dl.google.com/dl/cloudsdk/channels/rapid/components-2.Z466DEEC76ECDF5FCA6D38571F6324D54 SSLError) 网络连接问题可能是由于代理或防火墙设置造成的。

You may want to check the accepted answer from this post to uninstall all versions of Python and clean up homebrew.您可能需要检查此帖子接受的答案以卸载 Python 的所有版本并清理自制软件。

This should let you log in via Google login page.这应该让您通过 Google 登录页面登录。

I got my error fixed.我解决了我的错误。 Searched for the error above.搜索上面的错误。

Found this question stackoverflow.com/questions/65208575/…发现这个问题 stackoverflow.com/questions/65208575/...

Followed the instructions in the top rated answer given by John Hanley按照 John Hanley 给出的最高评价答案中的说明进行操作

Basically uninstalled all versions of Python.基本上卸载了所有版本的Python。 ( macupdate.com/app/mac/5880/python/uninstall ) Cleaned up homebrew. ( macupdate.com/app/mac/5880/python/uninstall )清理自制软件。 Re-ran ~/google-cloud-sdk/bin/gcloud init Got the same errors but this time it offered me the option to continue and sent me to a google login page.重新运行 ~/google-cloud-sdk/bin/gcloud init 得到了同样的错误,但这次它为我提供了继续的选项并将我发送到谷歌登录页面。 Logged in. Completed successfully.登录。成功完成。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 OS X 上安装 Google Cloud SDK:(gcloud.components.list) 无法从服务器获取组件列表 - Google Cloud SDK install on OS X: (gcloud.components.list) Failed to fetch component listing from server google-cloud-sdk-更新和尝试重新安装Mac OSX 10.7.5时均出现致命错误 - google-cloud-sdk - Fatal errors on both update and attempted reinstall Mac OSX 10.7.5 启动终端会自动运行google-cloud-sdk脚本吗? - Launching Terminal runs google-cloud-sdk script automatically? 升级到 macOS Catalina 后找不到 google-cloud-sdk.bash.inc - google-cloud-sdk .bash.inc not found after upgrading to macOS Catalina 已安装Google Cloud SDK但无法访问gcloud - Installed Google Cloud SDK but can't access gcloud 安装 Google Cloud SDK 时出错 - Error Installation Google Cloud SDK 安装google cloud sdk时出现“ImportError:没有名为zlib的模块” - “ImportError: No module named zlib” when install google cloud sdk 在OS X上安装Google Cloud SDK时,install.sh存在python问题 - install.sh has python problems when installing Google Cloud SDK on OS X 我应该在哪个目录中安装 Google Cloud 的 SDK(以及一般的 SDK) - In which directory should I install Google Cloud's SDK (and SDKs in general) 在OSX 10.9.1上安装Google Cloud SDK时出现问题 - trouble installing Google Cloud SDK on OSX 10.9.1
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM