![](/img/trans.png)
[英]Stackdriver logging agent installation fails on Ubuntu 16.04.5 LTS AWS EC2
[英]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#
首先你需要輸入:
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.