gpt4 book ai didi

google-cloud-sdk - 在 Ubuntu 上安装 Google Cloud SDK 时出错,如何解决?

转载 作者:行者123 更新时间:2023-12-04 12:34:07 31 4
gpt4 key购买 nike

我正在尝试设置 Google Cloud SDK CLI 来管理一些计算资源,我只是按照这部分的指南进行操作。我运行了这个命令,它成功安装了很多东西,但遇到了下面的问题。任何人都可以提出解决方案或如何调试吗?

$ sudo apt-get update && sudo apt-get install google-cloud-sdk                                   
[sudo] password for #######:
Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://archive.ubuntu.com/ubuntu focal-updates InRelease [111 kB]
Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease [98.3 kB]
Get:5 https://packages.cloud.google.com/apt cloud-sdk InRelease [6349 B]
Ign:6 http://packages.cloud.google.com/apt cloud-sdk-focal InRelease
Err:7 http://packages.cloud.google.com/apt cloud-sdk-focal Release
404 Not Found [IP: 216.58.204.238 80]
Get:8 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [255 kB]
Get:9 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [7492 B]
Get:10 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [132 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [4732 B]
Reading package lists... Done
E: The repository 'http://packages.cloud.google.com/apt cloud-sdk-focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

最佳答案

我在 Ubuntu 20 上遇到了同样的问题。解决方案是使用 snap 安装。

snap install google-cloud-sdk --classic
确保您有 --classic最后,否则你会得到这个错误:

error: This revision of snap "google-cloud-sdk" was published using classic confinement and thusmay perform arbitrary system changes outside of the security sandbox that snaps are usuallyconfined to, which may put your system at risk.If you understand and want to proceed, repeat the command including --classic.

关于google-cloud-sdk - 在 Ubuntu 上安装 Google Cloud SDK 时出错,如何解决?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62960276/

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