J'essaie de réinstaller Apache2 sur ma machine Ubntu12.X. J'avais Apache2 avant, mais pour des raisons que j'ai désinstallé.
J'utilise apt-get purge
pour supprimer Apache Tomcat, mais l'erreur se produit lors de la réinstallation. J'ai essayé de nombreuses manières expliquées dans de nombreux blogs, aucune des solutions n'a pu résoudre mon problème.
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)
Essayez de supprimer et de réinstaller les packages Apache2.2-common
, Apache2-mpm-worker
, Apache2
en exécutant:
Sudo dpkg -P Apache2.2-common
Sudo dpkg -P Apache2-mpm-worker
Sudo dpkg -P Apache2
Réinstallez ce qui précède en exécutant,
Sudo apt-get install Apache2.2-common
Sudo apt-get install Apache2-mpm-worker
Sudo apt-get install Apache2