我在尝试安装google cloud datalab时遇到错误:
$ sudo apt-get update
...
Ign:18 http://packages.cloud.google.com/apt cloud-sdk-sylvia/main Translation-en
Reading package lists... Done
W: The repository 'http://packages.cloud.google.com/apt cloud-sdk-sylvia Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://packages.cloud.google.com/apt/dists/cloud-sdk-sylvia/main/binary-amd64/Packages 404 Not Found [IP: 2607:f8b0:4007:803::200e 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
$ sudo apt-get install google-cloud-sdk-datalab
[sudo] password for ...:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package google-cloud-sdk-datalab
有没有人有任何想法?有没有人使用linux mint 18.3进行datalab工作?
答案 0 :(得分:2)
我遇到了同样的问题。您必须直接安装Google SDK。这是链接:google-cloud-sdk-200.0.0-linux-x86_64.tar.gz
在任何地方解压缩文件,然后运行install.sh然后关闭shell,打开一个新shell并运行gcloud init
答案 1 :(得分:1)
我遵循相同的步骤,面临同样的问题。因此,只需从/etc/apt/sources.list.d/google-cloud-sdk.list
中删除新添加的存储库,并以简单的方式安装gcloud sdk
sudo apt-get update && sudo apt-get install google-cloud-sdk
忽略带回购和密钥的所有步骤。而且一切正常。
PS我已经安装了Python 2.7
编辑,尽管此解决方案适用于gcloud init
之类的基本操作,但我还必须按照@kurdtpage答案中的说明{@ 3}}进行操作,以使gcloud components update
和所有其他组件工作