Collectcd-core 包未安装

Collectcd-core 包未安装

为了找到更快的存储库服务器,我无意中复制了一个 apt-spy 命令,该命令将我指向了 Debian 的“测试”版本。然后,我尝试通过重新运行带有适当软件包开关的 apt-spy 将系统恢复到稳定版本 (Wheezy)。现在,当我运行 apt-get update 时遇到问题,并显示以下错误消息:

Starting statistics collection and monitoring daemon: collectdERROR: lt_dlopen ("/usr/lib/collectd/rrdcached.so") failed: file not found. The most common cause for this problem is missing dependencies. Use ldd(1) to check the dependencies of the plugin / shared object.
Error: Reading the config file failed!
Read the syslog for details.
 not starting, configuration error failed!
invoke-rc.d: initscript collectd, action "start" failed.
dpkg: error processing package collectd-core (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 collectd-core
E: Sub-process /usr/bin/dpkg returned an error code (1)

如果我尝试使用以下方法更新:

dpkg-reconfigure -phigh collectd-core

我收到以下错误:

Error: Reading the config file failed!
Read the syslog for details.
 not starting, configuration error failed!
invoke-rc.d: initscript collectd, action "start" failed.
dpkg: error processing package collectd-core (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of collectd:
 collectd depends on collectd-core; however:
  Package collectd-core is not configured yet.

dpkg: error processing package collectd (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 collectd-core
 collectd
E: Sub-process /usr/bin/dpkg returned an error code (1)

我对 Linux 还比较陌生,一直在 Google 上搜索,试图找到解决方案,但没有成功。有什么建议吗?

一些模式信息,如果我运行“ldd /usr/lib/collectd/rrdcached.so”,我会收到以下内容(尝试使用 apt-get 安装任何东西都会返回与此文件相关的错误):

linux-vdso.so.1 (0x00007ffc931e8000)
librrd.so.8 => not found
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fa7c88d8000)
/lib64/ld-linux-x86-64.so.2 (0x00007fa7c8e80000)

答案1

好的,看起来下面的操作已经起作用了(这是有道理的):

apt-get remove --auto-remove collectd-core
apt-get purge --auto-remove collectd-core
apt-get update
apt-get --yes install collectd

我现在可以再次使用 apt-get 安装软件包。

相关内容