我正在安装 OpenNMS,安装过程中失败并出现以下错误
Preparing to unpack .../slpd_1.2.1-9_amd64.deb ...
Stopping OpenSLP server: slpd.
Unpacking slpd (1.2.1-9) over (1.2.1-9) ...
Setting up slpd (1.2.1-9) ...
+ [ configure = configure ]
+ dpkg --compare-versions le 1.2.1-7.6
+ echo Reinstalling init script for new priorities ...
Reinstalling init script for new priorities ...
+ update-rc.d slpd remove
update-rc.d: /etc/init.d/slpd exists during rc.d purge (use -f to force)
dpkg: error processing package slpd (--install):
subprocess installed post-installation script returned error exit status 1
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Errors were encountered while processing:
slpd
现在我无法安装或卸载任何东西。
答案1
测试一下:
打开一个终端。
运行:
sudo -i
update-rc.d -f slpd remove
dpkg --configure -a
apt-get -f install