gpt4 book ai didi

linux - Google Cloud SDK - 有没有办法在没有互联网访问的情况下在 Linux 上手动安装 google cloud sdk?

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:13:34 27 4
gpt4 key购买 nike

我正在尝试在无法访问互联网的 Linux 机器上安装 Google Cloud SDK。

我正在按照以下说明进行操作:https://cloud.google.com/sdk/?hl=en

我在本地机器上下载了 tar 文件,然后使用 scp 将它传输到 Linux 机器上。然后我运行 install.sh 文件并得到以下错误:

[me@user google-cloud-sdk]$ ./install.sh
Welcome to the Google Cloud SDK!

To help improve the quality of this product, we collect anonymized data on how
the SDK is used. You may choose to opt out of this collection now (by choosing
'N' at the below prompt), or at any time in the future by running the following
command:
gcloud config set --scope=user disable_usage_reporting true

Do you want to help improve the Google Cloud SDK (Y/n)? n


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

/home/me/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py:661: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
exc_message = getattr(exc, 'message', None)
/home/me/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py:664: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
msg = u'({0}) {1}'.format(command_path_string, exc.message)
ERROR: (gcloud.components.update) Failed to fetch component listing from server. Check your network settings and try again.

我有一个代理服务器,可以用来从这台 Linux 机器访问互联网。我尝试以“sh install.sh --proxy host:port”的形式运行 install.sh,但显然,install.sh 没有名为 proxy 的输入参数。

我该如何解决这个问题?

提前致谢。

最佳答案

在运行 install.sh 文件之前将我的代理详细信息导出为“export https_proxy='...'”。

这对我有用。

关于linux - Google Cloud SDK - 有没有办法在没有互联网访问的情况下在 Linux 上手动安装 google cloud sdk?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33645226/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com