/usr/bin/dpkg выйдите при установке апача

Я думаю, что, возможно, удалил важный каталог при удалении апача, я испытываю следующую проблему при попытке установить 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)
1
задан 23 July 2015 в 04:03

1 ответ

Выполните те команды:

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

Затем теперь попытка произвести чистку апача

sudo apt-get purge apache2  apache2-data apache2-utils
1
ответ дан 11 November 2019 в 02:12

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

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