請教一下各位前輩,小生的系統是 Debian etch(testing) Linux,之前有使用 apt 安裝了 apache2、PHP、MySQL 等套件且一切正常,最近這一、兩週以來,使用 aptitude 進行更新的時候當下載完成所需套件並欲開始進行安裝之際,會出現如下的錯誤訊息而導致更新動作停止,看起來似乎又是 dependency problem 惹得禍,請問有沒有什麼辦法解決呢???
Extracting templates from packages: 100%
Preconfiguring packages ...
dpkg: apache2-common: dependency problems, but removing anyway as you request:
apache2-mpm-prefork depends on apache2-common (= 2.0.55-4.1).
(Reading database ... 110344 files and directories currently installed.)
Removing apache2-common ...
Stopping apache 2.0 web server...Syntax error on line 1 of /etc/apache2/mods-enabled/php5.load:
API module structure `php5_module' in file /usr/lib/apache2/modules/libphp5.so is garbled - perhaps this is not an Apache module DSO?
failed!
invoke-rc.d: initscript apache2, action "stop" failed.
dpkg: error processing apache2-common (--remove):
subprocess pre-removal script returned error exit status 1
Errors were encountered while processing:
apache2-common
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
dpkg: dependency problems prevent configuration of libapache2-mod-php5:
libapache2-mod-php5 depends on apache2.2-common; however:
Package apache2.2-common is not installed.
dpkg: error processing libapache2-mod-php5 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libapache2-mod-php5
Press return to continue.
煩請各位前輩指點一下不才的小生喔,非長的感謝!!!