Atualizando o php - Erros foram encontrados

1

Executando o debian 4.0
Tentando

$ apt-get install php5

Eu obtenho

Reading package lists... Done
Building dependency tree... Done
php5 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
4 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up apache2.2-common (2.2.3-4+etch11) ...
chown: 'www-data': invalid user
dpkg: error processing apache2.2-common (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of apache2-mpm-prefork:
 apache2-mpm-prefork depends on apache2.2-common (= 2.2.3-4+etch11); however:
  Package apache2.2-common is not configured yet.
dpkg: error processing apache2-mpm-prefork (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libapache2-mod-php5:
 libapache2-mod-php5 depends on apache2-mpm-prefork (>> 2.0.52) | apache2-mpm-itk; however:
  Package apache2-mpm-prefork is not configured yet.
  Package apache2-mpm-itk is not installed.
 libapache2-mod-php5 depends on apache2.2-common; however:
  Package apache2.2-common is not configured yet.
dpkg: error processing libapache2-mod-php5 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5:
 php5 depends on libapache2-mod-php5 (>= 5.2.0+dfsg-8+etch16) | libapache-mod-php5 (>= 5.2.0+dfsg-8+etch16) | php5-cgi (>= 5.2.0+dfsg-8+etch16); however:
  Package libapache2-mod-php5 is not configured yet.
  Package libapache-mod-php5 is not installed.
  Package php5-cgi is not installed.
dpkg: error processing php5 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 apache2.2-common
 apache2-mpm-prefork
 libapache2-mod-php5
 php5
E: Sub-process /usr/bin/dpkg returned an error code (1)

Qual poderia ser o problema?

    
por Pierre de LESPINAY 31.05.2012 / 12:48

1 resposta

0

Alguém excluiu o usuário www-data do sistema. Você reconfigurou o Apache para usar um usuário diferente, e tudo bem, mas www-data é parte do conjunto principal de usuários do sistema que os pacotes Debian podem assumir, mesmo que você não o esteja usando. O script postinst do pacote apache2.2-common está alterando a propriedade de algum arquivo para esse usuário e assumindo que ele existe, e falhando se não existir.

Isto parece ser corrigido nos pacotes Apache no Debian 6.0. O Debian 4.0 é bem antigo. Mas a solução imediata seria recriar o usuário www-data .

    
por 17.03.2013 / 20:17