我已经运行 Ubuntu 12.04 和 Apache 2.2 一段时间了,使用 apache2-mpm-itk 可以为每个虚拟主机指定一个用户。
我已将 VPS 升级到 Ubuntu 14.04,它附带 Apache 2.4.7。我刚刚尝试安装 apache2-mpm-itk,但出现了一些依赖性错误。
# apt-get install apache2-mpm-itk
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libapache2-mpm-itk
The following NEW packages will be installed:
apache2-mpm-itk libapache2-mpm-itk
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 11.2 kB of archives.
After this operation, 94.2 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://mirrors.digitalocean.com/ubuntu/ trusty/universe libapache2-mpm-itk
amd64 2.4.6-01-1 [9,718 B]
Get:2 http://mirrors.digitalocean.com/ubuntu/ trusty/universe apache2-mpm-itk am
d64 2.4.7-1ubuntu4 [1,458 B]
Fetched 11.2 kB in 0s (298 kB/s)
Selecting previously unselected package libapache2-mpm-itk.
(Reading database ... 59657 files and directories currently installed.)
Preparing to unpack .../libapache2-mpm-itk_2.4.6-01-1_amd64.deb ...
Unpacking libapache2-mpm-itk (2.4.6-01-1) ...
Selecting previously unselected package apache2-mpm-itk.
Preparing to unpack .../apache2-mpm-itk_2.4.7-1ubuntu4_amd64.deb ...
Unpacking apache2-mpm-itk (2.4.7-1ubuntu4) ...
Setting up libapache2-mpm-itk (2.4.6-01-1) ...
dpkg: error processing package libapache2-mpm-itk (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of apache2-mpm-itk:
apache2-mpm-itk depends on libapache2-mpm-itk; however:
Package libapache2-mpm-itk is not configured yet.
dpkg: error processing package apache2-mpm-itk (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup erro
r from a previous failure.
Errors were encountered while processing:
libapache2-mpm-itk
apache2-mpm-itk
E: Sub-process /usr/bin/dpkg returned an error code (1)
这是 Ubuntu 的全新安装,所以我不确定没有编写 apport 报告,因为错误消息表明这是上次故障的后续错误意思是我没有安装任何其他东西。
可以帮我一下吗?
谢谢!
答案1
Ubuntu 14.04 和 Apache + mpm-itk 似乎存在一些问题。尝试使用
a2dismod mpm_event
apt-get -f install
并查看您之前中断的安装如何顺利继续。