我在 Ubuntu 16.04 64 位 xenial 上为 apache2 安装 modsecurity 时遇到了这个问题
root@mytestmachine:~# apt-get -y install libapache2-mod-security2
Reading package lists... Done
Building dependency tree
Reading state information... Done
libapache2-mod-security2 is already the newest version (2.9.0-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up libapache2-mod-security2 (2.9.0-1) ...
dpkg: error processing package libapache2-mod-security2 (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of libapache2-modsecurity:
libapache2-modsecurity depends on libapache2-mod-security2; however:
Package libapache2-mod-security2 is not configured yet.
dpkg: error processing package libapache2-modsecurity (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of modsecurity-crs:
modsecurity-crs depends on libapache2-mod-security2 (>= 2.8.0); however:
Package libapache2-mod-security2 is not configured yet.
dpkg: error processing package modsecurity-crs (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libapache2-mod-security2
libapache2-modsecurity
modsecurity-crs
E: Sub-process /usr/bin/dpkg returned an error code (1)
任何建议都会非常有帮助,因为我对 Ubuntu 不太熟悉。谢谢