Installation 子流程安装的安装后脚本返回了安装/删除Cacti的错误

Installation 子流程安装的安装后脚本返回了安装/删除Cacti的错误,installation,debian,cacti,Installation,Debian,Cacti,我一直试图在我的服务器上安装仙人掌。我曾尝试在他们的论坛上寻求一些支持,由于几乎没有支持而来到这里。我试图从头开始安装cacti,但一直遇到错误,以下是我得到的错误。我在问我可能做错了什么或错过了什么 移除 root@erebus:~# apt-get --purge remove cacti cacti-spine Reading package lists... Done Building dependency tree Reading state information... Done T

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

移除

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)
root@erebus:~#apt get install snmpd
正在阅读软件包列表。。。多恩
构建依赖树
正在读取状态信息。。。多恩
snmpd已经是最新版本了。
0已升级,0已新安装,0已删除,88未升级。
1未完全安装或拆除。
执行此操作后,将使用0 B的额外磁盘空间。
是否要继续[Y/n]?Y
设置仙人掌(0.8.7i-2ubuntu1)。。。
dbconfig common:将配置写入/etc/dbconfig common/cacti.conf
用新版本替换配置文件/etc/cacti/debian.php
dpkg:处理仙人掌时出错(--configure):
子流程安装的安装后脚本返回错误退出状态10
处理时遇到错误:
仙人掌
[master 4c76eb7]在apt运行后提交/etc中的更改
作者:ryahn
2个文件已更改,1个插入(+),3个删除(-)
E:子流程/usr/bin/dpkg返回错误代码(1)

看起来不像仙人掌问题,更像是软件包损坏或安装错误的情况,请尝试以下方法: