Ошибка переустановки Apache2

Я пытаюсь переустановить apache2 на моем компьютере Ubntu12.X. Я имел apache2 раньше, но по некоторым причинам я удалил.

Я использую apt-get purge для удаления apache tomcat, но при переустановке я получаю эти ошибки. Я попробовал много способов объяснения во многих блогах, но ни один из них не смог решить мою проблему.

Setting up apache2.2-common (2.2.22-1ubuntu1.4) ...
ERROR: Config file dir.conf not properly enabled: /etc/apache2/mods-enabled/dir.conf is a real file, not touching it
dpkg: error processing apache2.2-common (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of apache2-mpm-worker:
 apache2-mpm-worker depends on apache2.2-common (= 2.2.22-1ubuntu1.4); however:
  Package apache2.2-common is not configured yet.
dpkg: error processing apache2-mpm-worker (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of apache2:
 apache2 depends on apache2-mpm-worker (= 2.2.22-1ubuntu1.4) | apache2-mpm-prefork (= 2.2.22-1ubuntu1.4) | apache2-mpm-event (= 2.2.22-1ubuntu1.4) | apache2-mpm-itk (= 2.2.22-1ubuntu1.4); however:
  Package apache2-mpm-worker is not configured yet.
  Package apache2-mpm-prefork is not installed.
  Package apache2-mpm-event is not installed.
  Package apache2-mpm-itk is not installed.
 apache2 depends on apache2.2-common (= 2.2.22-1ubuntu1.4); however:
  Package apache2.2-common is not configured yet.
dpkg: error processing apache2 (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
 apache2.2-common
 apache2-mpm-worker
 apache2
E: Sub-process /usr/bin/dpkg returned an error code (1)
2
задан 21 February 2014 в 18:41

1 ответ

Попробуйте удалить и переустановить пакеты apache2.2-common, apache2-mpm-worker, apache2, запустив,

sudo dpkg -P apache2.2-common
sudo dpkg -P apache2-mpm-worker
sudo dpkg -P apache2

Переустановите выше, запустив,

sudo apt-get install apache2.2-common
sudo apt-get install apache2-mpm-worker
sudo apt-get install apache2
0
ответ дан 21 February 2014 в 18:41

Другие вопросы по тегам:

Похожие вопросы: