Je pense que j'ai peut-être supprimé un répertoire important lors de la désinstallation d'Apache. Je rencontre le problème suivant lorsque j'essaie d'installer Apache:
Setting up Apache2 (2.4.7-1ubuntu4.4) ...
cp: cannot stat '/usr/share/Apache2/default-site/index.html': No such file or directory
dpkg: error processing package Apache2 (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
Apache2
Reading package lists...
Building dependency tree...
Reading state information...
Apache2 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 187 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up Apache2 (2.4.7-1ubuntu4.4) ...
cp: cannot stat '/usr/share/Apache2/default-site/index.html': No such file or directory
dpkg: error processing package Apache2 (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
Apache2
E: Sub-process /usr/bin/dpkg returned an error code (1)
Exécutez ces commandes:
Sudo dpkg --configure -a
Sudo apt-get install -f
Essayez maintenant de purger Apache
Sudo apt-get purge Apache2 Apache2-data Apache2-utils