Cloudinsight Agent 在 4.7.0 版本,将 Agent 名称从 oneapm-ci-agent 更换至 cloudinsight-agent。若您在使用过程中,出现无法正常工作的情况,请加入售后群:433349863
X

‘nmet dependencies’ Ubuntu 安装错误

在 Ubuntu 操作系统上安装探针是报错如下:

* Installing APT package sources for Cloudinsight

Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.0dkKOJrsNY --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 54B043BC
gpg: requesting key 54B043BC from hkp server keyserver.ubuntu.com
gpg: key 54B043BC: "Cloudinsight Packages <package@oneapm.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1

* Installing the Cloudinsight Agent package

Ign http://apt.oneapm.com stable InRelease
Hit http://apt.oneapm.com stable Release.gpg
Hit http://apt.oneapm.com stable Release
Hit http://apt.oneapm.com stable/main amd64 Packages
Hit http://apt.oneapm.com stable/main i386 Packages
Ign http://apt.oneapm.com stable/main TranslationIndex
Ign http://apt.oneapm.com stable/main Translation-en_US
Ign http://apt.oneapm.com stable/main Translation-en
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 kunagi : Depends: tomcat6 but it is not going to be installed
          Recommends: msttcorefonts
          Recommends: ttf-dejavu but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
ERROR
Failed to install the Cloudinsight package, sometimes it may be
due to another APT source failing. See the logs above to
determine the cause.
If the cause is unclear, please contact Cloudinsight support.

报错说明:

以上报错说明 Ubuntu 系统内 APT 包源本身冲突,如果不安装更新软件的话这个问题不会表现出来,但在安装 Cloudinsight 探针时第一步执行的 sudo apt-get update,此时系统内如果有服务需要升级版本,就会报出错。

解决方法:

这个问题 Cloudinsight 本身没有问题,所以可以在安装时分布安装,跳过 update 的操作,具体方法如下:

sudo apt-get autoremove
sudo apt-get autoclean
wget http://apt.oneapm.com/pool/main/cloudinsight-agent_x.x.0-1_amd64.deb  (可以自行查看当前版本)
dpkg -i cloudinsight-agent_x.x.0-1_amd64.deb
vi /etc/cloudinsight-agent/cloudinsight-agent.conf     ( 修改成自己的 license_key )
/etc/init.d/cloudinsight-agent restart

以上几步即包括删除不需要的软件包,下载当前最近 Cloudinsight 探针(里面包括探针各种依赖包),修改探针配置文件,添加进自己的 license_key ,重启探针,让配置生效,其他之前的一键复制也是运行的这些功能。


如果您对 Cloudinsight 感兴趣,可以选择试用我们的产品,只需要点击下面的按钮免费注册即可。


立即注册 Cloudinsight