Erro de reinstalação do Apache2

2

Estou tentando reinstalar o apache2 na minha máquina Ubntu12.X. Eu tinha o apache2 antes, mas devido a algumas razões, eu o desinstalei.

Eu uso apt-get purge para remover o apache tomcat mas enquanto estou reinstalando, estou recebendo este erro. Eu tentei de várias maneiras explicado em muitos blogs, nenhum dos poderia resolver o meu problema.

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)
    
por user2060435 21.02.2014 / 15:40

1 resposta

2

Tente remover e reinstalar apache2.2-common , apache2-mpm-worker , apache2 packages executando,

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

Reinstale o acima executando,

sudo apt-get install apache2.2-common
sudo apt-get install apache2-mpm-worker
sudo apt-get install apache2
    
por Avinash Raj 21.02.2014 / 15:57