Eu instalei o servidor php e apache2 antes, mas estou com problemas.
O processo até agora é o seguinte:
sudo apt-get install tasknet
sudo apt-get install lamp-server
Durante a instalação, o tasksel para com
tasksel: aptitude failed (100)
Eu tentei:
sudo tasksel remove lamp-server
sudo apt-get install lamp-server
Com o mesmo erro
Em seguida, tentei
sudo apt-get update && sudo apt-get upgrade
com o seguinte resultado:
Setting up mysql-server-5.5 (5.5.31-0ubuntu0.13.04.1) ...
start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.5 (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up php5-common (5.4.9-4ubuntu2.1) ...
Not replacing deleted config file /etc/php5/mods-available/pdo.ini
ERROR: /etc/php5/mods-available/pdo.ini does not exist
dpkg: error processing php5-common (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of php5-cli:
php5-cli depends on php5-common (= 5.4.9-4ubuntu2.1); however:
Package php5-common is not configured yet.
dpkg: error processing php5-cli (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libapache2-mod-php5:
libapache2-mod-php5 depends on php5-common (= 5.4.9-4ubuntu2.1); however:
Package php5-common is not configured yet.
dpkg: error processing libapache2-mod-php5 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5-mysql:
php5-mysql depends on phpapi-20100525; however:
Package phpapi-20100525 is not installed.
Package libapache2-mod-php5filter which provides phpapi-20100525 is not installed.
Package libapache2-mod-php5 which provides phpapi-20100525 is not configured yet.
Package php5-cli which provides phpapi-20100525 is not configured yet.
php5-mysql depends on php5-common (= 5.4.9-4ubuntuNo apport report written because the error message indicates it's a follow-up error from a previous failure.
No apport report written because MaxReports has already been reached
No apport report written because MaxReports has already been reached
No apport report written because MaxReports has already been reached
2.1); however:
Package php5-common is not configured yet.
dpkg: error processing php5-mysql (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.5; however:
Package mysql-server-5.5 is not configured yet.
dpkg: error processing mysql-server (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
mysql-server-5.5
php5-common
php5-cli
libapache2-mod-php5
php5-mysql
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
Então eu tentei:
sudo dpkg --configure -a
e recebi o seguinte:
Setting up php5-common (5.4.9-4ubuntu2.1) ...
Not replacing deleted config file /etc/php5/mods-available/pdo.ini
ERROR: /etc/php5/mods-available/pdo.ini does not exist
dpkg: error processing php5-common (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up mysql-server-5.5 (5.5.31-0ubuntu0.13.04.1) ...
start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.5 (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of php5-cli:
php5-cli depends on php5-common (= 5.4.9-4ubuntu2.1); however:
Package php5-common is not configured yet.
dpkg: error processing php5-cli (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libapache2-mod-php5:
libapache2-mod-php5 depends on php5-common (= 5.4.9-4ubuntu2.1); however:
Package php5-common is not configured yet.
dpkg: error processing libapache2-mod-php5 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.5; however:
Package mysql-server-5.5 is not configured yet.
dpkg: error processing mysql-server (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5-mysql:
php5-mysql depends on phpapi-20100525; however:
Package phpapi-20100525 is not installed.
Package libapache2-mod-php5filter which provides phpapi-20100525 is not installed.
Package libapache2-mod-php5 which provides phpapi-20100525 is not configured yet.
Package php5-cli which provides phpapi-20100525 is not configured yet.
php5-mysql depends on php5-common (= 5.4.9-4ubuntu2.1); however:
Package php5-common is not configured yet.
dpkg: error processing php5-mysql (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
php5-common
mysql-server-5.5
php5-cli
libapache2-mod-php5
mysql-server
php5-mysql
Depois de analisar esses erros, tentei instalar o servidor mySQL novamente manualmente com
sudo apt-get install mysql-server-5.5
mas recebi os mesmos erros que recebi no último conjunto de erros.
eu corri
sudo tasksel --test
com o seguinte resultado:
debconf-apt-progress -- apt-get -q -y install lamp-server^
então eu executei este comando com sudo
e com 15% ele disse instalando o mysql-server e depois para o mysql-com com 18% onde parou.
Corri alguns dos comandos que já tentei com os mesmos resultados.
A questão.
Por favor, pode aconselhar o que devo fazer a seguir?
UPDATE
Eu digitei sudo apt-get update && sudo apt-get upgrade
e depois de fazer o download e verificar os pacotes, o seguinte relatório foi fornecido:
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
6 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up mysql-server-5.5 (5.5.31-0ubuntu0.13.04.1) ...
start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
etc etc.