ubuntu - 在 Ubuntu 18 上安装 gcloud / gsutil
问题描述
希望将一些存储桶从 AWS S3 迁移到 Google Cloud Storage,但在我的 Ubuntu 18.04.4 VM 上安装 GCP 工具时运气不佳。
遵循本指南:[ https://cloud.google.com/storage/docs/gsutil_install#deb][1]
主要被困在这里:
root@ubuntu18:/home/me# apt install google-cloud-sdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
No apt package "google-cloud-sdk", but there is a snap with that name.
Try "snap install google-cloud-sdk"
E: Unable to locate package google-cloud-sdk
解决方案
您是否先添加了 Google Cloud SDK URI?
# Add the Cloud SDK distribution URI as a package source
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
# Import the Google Cloud Platform public key
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
# Update the package list
sudo apt-get update
# Install the Google Cloud SDK
sudo apt-get install google-cloud-sdk
推荐阅读
- mysql - Laravel中的表迁移错误,用于向表中添加列
- mysql - 根据浏览量优化上周热门标题的查询性能
- javascript - 不知道如何破译这个方法签名
- python - 在 Python 中实现 Euler Tour
- sql - 根据条件从列中提取子字符串
- python - 在 django 视图/全局对象之间共享对象
- excel - 使用 vba 修剪值时类型不匹配(错误 13)
- spring - JavaMail 仅在从 webapp 调用时才响应
- python - 将 pandas.DataFrame 附加到另一个 pandas.DataFrame 的一列
- python - 在 python 中为用户定义的函数传递一个数组