Tentando instalar o LAMP no Ubuntu 16.04, mas muitos dos problemas apresentados também tentam instalar o XAMP através de comandos relacionados, mas eu enfrento alguns problemas, então eu removo o LAMP & amp; XAMP através do comando relacionado da lâmpada e excluir diretamente XAMP. E eu tento instalar novamente, mas há muitos problemas: -
(1) Instalação do apache
sudo apt-get install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
apache2 is already the newest version (2.4.18-2ubuntu3.1).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
mysql-server : Depends: mysql-server-5.7 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
(2) Instalação do mysql
sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server is already the newest version (5.7.15-0ubuntu0.16.04.1).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
mysql-server : Depends: mysql-server-5.7 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
(3) Instalação do php
sudo apt-get install php5 libapache-mod-php5
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'php5' has no installation candidate
E: Unable to locate package libapache-mod-php5
(4) instalação de barreira
sudo /etc/init.d/apache2 restart
/etc/init.d/apache2: 46: .: Can't open /etc/apache2/envvars
[....] Restarting apache2 (via systemctl): apache2.serviceJob for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.
Failed!