我已經運行 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 的全新安裝,所以我不確定是什麼未寫入批准報告,因為錯誤訊息表明它是先前故障的後續錯誤意思是因為我沒有安裝任何其他東西。
可以幫我一下嗎?
謝謝!
答案1
Ubuntu 14.04 和 Apache + mpm-itk 似乎存在一些問題。嘗試用
a2dismod mpm_event
apt-get -f install
並查看先前中斷的安裝如何順利繼續。