apt-get error phpldapadmin

0

deseja atualizar o apache em um Ubuntu 12.04 com este manual: link

Eu desinstalei o apache2.2 e agora quero instalar o apache 2.4, mas quando quiser instalá-lo, recebo a mensagem:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:

php5-cli : Depends: php5-common (= 5.3.10-1ubuntu3.6) but 5.3.10-1ubuntu3.26 is to be installed

php5-curl : Depends: php5-common (= 5.3.10-1ubuntu3.6) but 5.3.10-1ubuntu3.26 is to be installed

php5-gd : Depends: php5-common (= 5.3.10-1ubuntu3.6) but 5.3.10-1ubuntu3.26 is to be installed

php5-sqlite : Depends: php5-common (= 5.3.10-1ubuntu3.6) but 5.3.10-1ubuntu3.26 is to be installed

php5-tidy : Depends: php5-common (= 5.3.10-1ubuntu3.6) but 5.3.10-1ubuntu3.26 is to be installed

php5-xmlrpc : Depends: php5-common (= 5.3.10-1ubuntu3.6) but 5.3.10-1ubuntu3.26 is to be installed

E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Com o "apt-get -f install" recebi:

invoke-rc.d: initscript apache2, action "restart" failed.
dpkg: error processing phpldapadmin (--remove):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
 phpldapadmin
 E: Sub-process /usr/bin/dpkg returned an error code (1)

Eu não preciso de phpldapadmin. O que posso fazer?

    
por christophel 09.03.2017 / 16:56

1 resposta

0

Parece que você ainda tem alguns pacotes PHP instalados com a versão 5.3.10-1ubuntu3.6 , enquanto o novo pacote está tentando instalar 5.3.10-1ubuntu3.26 . Essas versões são incompatíveis. Tente desinstalar os pacotes PHP antigos primeiro:

apt-get remove php5-cli php5-curl php5-gd php5-sqlite php5-tidy php5-xmlrpc php5-common phpldapadmin

Pode haver outros pacotes PHP restantes, então você também pode querer usar o curinga:

apt-get remove php5-* phpldapadmin

Após a remoção dos pacotes, reinstale tudo com a nova versão:

apt-get update
apt-get install php5-cli php5-curl php5-gd php5-sqlite php5-tidy php5-xmlrpc php5-common apache2
    
por Oldskool 14.03.2017 / 10:21