Não é possível instalar o Apache. Dependências ausentes que não serão instaladas

0

Estou tentando instalar o LAMP no meu novo servidor. O problema é que continuo recebendo um erro. Aqui está o que é:

root@178658:~# apt-get install lamp-server^
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'mysql-server-core-5.5' for task 'lamp-server'
Note, selecting 'mysql-server-5.5' for task 'lamp-server'
Note, selecting 'mysql-client-core-5.5' for task 'lamp-server'
Note, selecting 'apache2-mpm-prefork' for task 'lamp-server'
Note, selecting 'libapache2-mod-php5' for task 'lamp-server'
Note, selecting 'php5-mysql' for task 'lamp-server'
Note, selecting 'php5-common' for task 'lamp-server'
Note, selecting 'php5-readline' for task 'lamp-server'
Note, selecting 'mysql-client-5.5' for task 'lamp-server'
Note, selecting 'mysql-common' for task 'lamp-server'
Note, selecting 'php5-cli' for task 'lamp-server'
Note, selecting 'libmysqlclient18' for task 'lamp-server'
Note, selecting 'apache2-data' for task 'lamp-server'
Note, selecting 'apache2' for task 'lamp-server'
Note, selecting 'mysql-server' for task 'lamp-server'
Note, selecting 'apache2-bin' for task 'lamp-server'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 apache2-bin : Depends: libapr1 (>= 1.5.0) but it is not installable
               Depends: libaprutil1 (>= 1.5.0) but it is not installable
               Depends: libaprutil1-dbd-sqlite3 but it is not installable or
                        libaprutil1-dbd-mysql but it is not installable or
                        libaprutil1-dbd-odbc but it is not installable or
                        libaprutil1-dbd-pgsql but it is not installable or
                        libaprutil1-dbd-freetds but it is not installable
               Depends: libaprutil1-ldap but it is not installable
 mysql-client-5.5 : Depends: libdbd-mysql-perl (>= 1.2202) but it is not installable
                    Depends: libdbi-perl but it is not installable
                    Depends: libterm-readkey-perl but it is not installable
 mysql-server-5.5 : Depends: libdbi-perl but it is not installable
                    Recommends: libhtml-template-perl but it is not installable
 mysql-server-core-5.5 : Depends: libaio1 (>= 0.3.93) but it is not installable
 php5-common : Depends: php5-json but it is not installable
E: Unable to correct problems, you have held broken packages.'

Alguém tem alguma idéia de como corrigir isso. Eu já tentei grep para encontrar pacotes quebrados, no entanto, não mostra nada. Esta é uma instalação completa em estoque.

Obrigado.

    
por Taylor Broad 13.11.2015 / 19:53

2 respostas

0

Já tentou instalá-los separadamente? Como isso: sudo apt-get instala o apache2 php5 php5-mysql mysql-server e depois também sudo apt-get instala o phpmyadmin sudo apt-get update

    
por Nigat 13.11.2015 / 19:59
0

pode ser o seu arquivo sources.list .

execute este comando no terminal, isso excluirá sources.list

sudo rm /etc/apt/sources.list

Em seguida, execute este comando:

sudo software-properties-gtk

selecione todas as caixas da seguinte forma:

Emseguida,cliqueemfechar.Então,essajanelairáaparecer,cliqueemrecarregar.

Em seguida, tente instalar lamp-server

sudo apt-get install lamp-server^
    
por Neil 13.11.2015 / 23:13