
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04 LTS
Release: 18.04
Codename: bionic
$ sudo apt-get update
Hit:1 http://asia-northeast1.gce.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://asia-northeast1.gce.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:3 http://asia-northeast1.gce.archive.ubuntu.com/ubuntu bionic-backports InRelease
Ign:4 http://packages.cloud.google.com/apt google-cloud-monitoring-bionic InRelease
Get:5 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Hit:6 http://archive.canonical.com/ubuntu bionic InRelease
Err:7 http://packages.cloud.google.com/apt google-cloud-monitoring-bionic Release
404 Not Found [IP: 172.217.25.238 80]
Reading package lists... Done
E: The repository 'http://packages.cloud.google.com/apt google-cloud-monitoring-bionic 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.
答案1
看来您可能运行了谷歌有缺陷的 Stackdriver Agent安装脚本。
/etc/apt/sources.list.d/google-cloud-monitoring.list
即使您所在的区域(即仿生)不在其中,脚本也会更新https://packages.cloud.google.com/apt/dists
此外,changing google-cloud-monitoring.list
由于 alibcurl3
和curl
<=libcurl4
冲突,xenial(在仿生学上)将失败。
谷歌应该修复他们的脚本
答案2
在我看来,您的存储库名称错误。我没有看到google-cloud-monitoring-bionic
.
有可能吗google-cloud-monitoring-xenial
?
https://packages.cloud.google.com/apt/dists
使用 Web 浏览器浏览以查看可用的存储库。