簡體   English   中英

Stackdriver 代理安裝失敗

[英]Stackdriver agent installation failed

我正在嘗試安裝 Stackdriver Agent。 我正在使用谷歌雲實例(os Ubuntu)並按照谷歌雲文檔中給出的說明進行監控。 這是來自我的服務器控制台的日志。

root@instance-1:~/opt# sudo bash stack-install.sh --write-gcm
Installing agents for Debian or Ubuntu.
curl: (22) The requested URL returned error: 404 Not Found
OK
Hit:1 http://asia-east1.gce.archive.ubuntu.com/ubuntu yakkety InRelease
Hit:2 http://asia-east1.gce.archive.ubuntu.com/ubuntu yakkety-updates     InRelease
Get:3 http://asia-east1.gce.archive.ubuntu.com/ubuntu yakkety-backports     InRelease [102 kB]
Ign:4 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 InRelease
Hit:5 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 Release
Hit:6 http://security.ubuntu.com/ubuntu yakkety-security InRelease
Hit:8 http://archive.canonical.com/ubuntu yakkety InRelease
Hit:9 https://deb.nodesource.com/node_6.x yakkety InRelease
Fetched 102 kB in 0s (111 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package stackdriver-agent
Installation failed.
root@instance-1:~/opt# 

根據已記錄的操作系統列表,目前支持以下操作系統

  • LTS 12.04“精確”
  • LTS 14.04“值得信賴”
  • LTS 16.04“Xenial”

並且似乎只支持 LTS 版本。

首先你需要輸入:

sudo apt-cache madison stackdriver-agent

顯示代理的可用版本列表以選擇要安裝的版本。

結果:

堆棧驅動程序代理| 6.0.2-1.bionic | http://packages.cloud.google.com/apt google-cloud-monitoring-bionic-all/main amd64 軟件包

堆棧驅動程序代理| 6.0.1-1.bionic | http://packages.cloud.google.com/apt google-cloud-monitoring-bionic-all/main amd64 軟件包

堆棧驅動程序代理| 6.0.0-1.bionic | http://packages.cloud.google.com/apt google-cloud-monitoring-bionic-all/main amd64 軟件包

堆棧驅動程序代理| 5.5.2-1002.bionic | http://packages.cloud.google.com/apt google-cloud-monitoring-bionic-all/main amd64 軟件包

堆棧驅動程序代理| 5.5.2-1001.bionic | http://packages.cloud.google.com/apt google-cloud-monitoring-bionic-all/main amd64 軟件包

然后:

sudo apt-get install -y 'stackdriver-agent=[MAJOR_VERSION].*'

例如,要固定到代理的 6.0.2-1 仿生,請運行:

sudo apt-get install -y 'stackdriver-agent=6.0.2-1.bionic*'

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM