/ usr / bin / dpkg ao instalar o apache

1

Acho que posso ter excluído um diretório importante ao desinstalar o apache Estou com o seguinte problema ao tentar instalar o 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)
    
por user432403 23.07.2015 / 11:04

1 resposta

0

Execute os comandos:

sudo dpkg --configure -a
sudo apt-get install -f

Agora, tente limpar o apache

sudo apt-get purge apache2  apache2-data apache2-utils
    
por Maythux 23.07.2015 / 11:10