0

我一直试图在我的服务器上安装仙人掌。我已经尝试在他们的论坛上寻求一些支持,并且由于几乎没有支持而来到这里。我正在尝试从头开始安装仙人掌,但一直遇到错误,这是我得到的以下错误。我在问我可能做错了什么或错过了什么?

移动

root@erebus:~# apt-get --purge remove cacti cacti-spine
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  rrdtool libdbi1 librrd4 php5-snmp snmp libphp-adodb
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  cacti* cacti-spine*
0 upgraded, 0 newly installed, 2 to remove and 88 not upgraded.
1 not fully installed or removed.
After this operation, 4,766 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 63908 files and directories currently installed.)
Removing cacti ...
dpkg: error processing cacti (--purge):
 subprocess installed pre-removal script returned error exit status 10
dbconfig-common: flushing administrative password
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 10
Removing cacti-spine ...
Purging configuration files for cacti-spine ...
Errors were encountered while processing:
 cacti
E: Sub-process /usr/bin/dpkg returned an error code (1)

安装先决条件

root@erebus:~# apt-get install snmpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
snmpd is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 88 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up cacti (0.8.7i-2ubuntu1) ...
dbconfig-common: writing config to /etc/dbconfig-common/cacti.conf
Replacing config file /etc/cacti/debian.php with new version
dpkg: error processing cacti (--configure):
 subprocess installed post-installation script returned error exit status 10
Errors were encountered while processing:
 cacti
[master 4c76eb7] committing changes in /etc after apt run
 Author: ryahn <ryahn@erebus>
 2 files changed, 1 insertion(+), 3 deletions(-)
E: Sub-process /usr/bin/dpkg returned an error code (1)
4

1 回答 1

1

看起来不像是 Cacti 问题,更像是包损坏或安装错误的情况,试试这个: http://forums.debian.net/viewtopic.php?f=10& t=82861

于 2014-01-05T16:59:13.410 回答