Recebo um erro ao tentar instalar o apache2-bin

Recebo um erro ao tentar instalar o apache2-bin

Estou tentando instalar o apache2-bin porque não consigo reiniciar o apache2 devido a uma configuração ausente ou quebrada. E meu site está fora do ar ou não redireciona corretamente sem o Apache2 em execução. Então o que tenho é esse erro ocorrendo quando tento instalar:

The following NEW packages will be installed:
apache2-bin
0 upgraded, 1 newly installed, 0 to remove and 12 not upgraded.
Need to get 0 B/1067 kB of archives.
After this operation, 3979 kB of additional disk space will be used.
(Reading database ... 106699 files and directories currently installed.)
Preparing to unpack .../apache2-bin_2.4.23-1+deb.sury.org~trusty+1_amd64.deb ...
Unpacking apache2-bin (2.4.23-1+deb.sury.org~trusty+1) ...
dpkg: error processing archive /var/cache/apt/archives/apache2-bin_2.4.23-1+deb.sury.org~trusty+1_amd64.deb (--unpack):
trying to overwrite '/usr/sbin/apache2', which is also in package apache2-mpm-worker 2.2.22-1ubuntu1.11
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/apache2-bin_2.4.23-1+deb.sury.org~trusty+1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)***

Responder1

Esse problema foi resolvido usando a seguinte resposta:

como reinstalar o apache2?

Primeiro:

sudo apt-get --purge remove apache2
sudo apt-get autoremove

Então instalar o apache2 é tão simples quanto:

sudo apt-get install apache2
sudo /etc/init.d/apache2 restart

Para testar:

lince "http://localhost"

informação relacionada