Depois que instalei o Apache através da sequência de comandos que você pode encontrar a seguir, deu-me um erro: /usr/sbin/apache2ctl: 171: /usr/sbin/apache2ctl: /usr/sbin/apache2: not found
. Depois de pesquisar no Google, descobri que isso faz parte de uma dependência do Apache2, que aparentemente está ausente. Alguém sabe qual é a dependência?
Sequência de comandos:
sudo apt-get install apache2.2-common
sudo apt-get install apache2
sudo apache2ctl start -k
Depois de mais alguns Googling eu percebi que eu deveria tentar
sudo service apache2 start
o que me dá o erro: No apache MPM package installed
. Eu tentei instalar o pacote usando o comando sudo apt-get install apache2-mpm-prefork
. Eu publiquei os resultados disso aqui.
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
apache2-mpm-worker
The following NEW packages will be installed:
apache2-mpm-prefork
0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Need to get 0 B/2.398 B of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
dpkg: apache2-mpm-worker: dependency problems, but removing anyway as you requested:
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 to be removed.
Package apache2-mpm-prefork is not installed.
Package apache2-mpm-event is not installed.
Package apache2-mpm-itk is not installed.
(Reading database ... 267257 files and directories currently installed.)
Removing apache2-mpm-worker ...
No apache MPM package installed
Selecting previously unselected package apache2-mpm-prefork.
(Reading database ... 267251 files and directories currently installed.)
Unpacking apache2-mpm-prefork (from .../apache2-mpm-prefork_2.2.22-1ubuntu1.4_amd64.deb) ...
Setting up apache2-mpm-prefork (2.2.22-1ubuntu1.4) ...
No apache MPM package installed
@Jos Remove e reinstala, com mensagens do console muito semelhantes às mencionadas no OP. (
—
Jeroen Bollen
No apache MPM package installed
)
sudo apt-get remove apache2-mpm-worker
esudo apt-get install apache2-mpm-prefork
separadamente?