關於 APT 更新時卡在 apache2 相關套件~~~~

如果您覺得您的問題不屬於 debian desktop 或是 debian server 版的範圍內,請在這裡發問。

版主: mufa

關於 APT 更新時卡在 apache2 相關套件~~~~

文章Lost-Angel » 週六 11月 25, 2006 6:50 pm

請教一下各位前輩,小生的系統是 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.

煩請各位前輩指點一下不才的小生喔,非長的感謝!!!
The most beautiful thing we can experience is mysterious.
It is the source of all true art and science.

--- Albert Einstein, 1930
頭像
Lost-Angel
活潑的高中生
活潑的高中生
 
文章: 265
註冊時間: 週二 1月 25, 2005 1:29 am
來自: 臺灣民國高雄縣

文章Joy » 週日 11月 26, 2006 10:49 am

建議你將apache2, apache2.2-common, libapache2-mod-php5整個移除掉後, 再重裝即可。
--
a simple LINUXer
頭像
Joy
可愛的小學生
可愛的小學生
 
文章: 24
註冊時間: 週三 11月 08, 2006 8:19 pm


回到 debian misc

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客

cron