sudo apt-get instala o apache2 - não funciona

0

Em exibição:

sudo apt-get install apache2

Resultado com:

 * Apache2 is not running
invoke-rc.d: initscript apache2, action "reload" failed.
apache2_invoke headers: already enabled
 * Restarting web server apache2                                                                                                                AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
                                                                                                                                         [fail]
 * The apache2 instance did not start within 20 seconds. Please read the log files to discover problems
invoke-rc.d: initscript apache2, action "restart" failed.
 * Reloading web server apache2                                                                                                                  * 
 * Apache2 is not running
invoke-rc.d: initscript apache2, action "reload" failed.
dpkg: error processing package gosa (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of gosa-plugin-ssh:
 gosa-plugin-ssh depends on gosa; however:
  Package gosa is not configured yet.

dpkg: error processing package gosa-plugin-ssh (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 gosa
 gosa-plugin-ssh
E: Sub-process /usr/bin/dpkg returned an error code (1)
ramana@lenovog500:~/KM_GIT/bbb/iot/mysql$ ^C
    
por ramana 25.06.2017 / 11:07

2 respostas

0

Você já se cansou de instalá-lo em grande quantidade de tempo, ou você já tem algum outro servidor instalado? Nesse caso, você precisa derrubar ou excluir esse outro servidor, (se você quiser usar o Apache como um host local ) Quando eu tive a necessidade de fazer o novo servidor web Apache, eu tive apenas o seguinte tutorial

link

    
por Sky_ 25.06.2017 / 11:42
0

O dpkg parece ter um problema de dependência com o gosa-plugin-ssh

Package gosa is not configured yet.

tente

dpkg --configure -a

e

apt-get update
apt-get -f install

Boas explicações sobre as seguintes respostas:

por invad0r 25.06.2017 / 11:48