php5-curl é interrompida devido à falha do ucf em /etc/php5/mods-available/curl.ini

1

Eu estraguei minha instalação raspbian (debian). Para corrigir isso, estou passando pela reinstalação de todos os pacotes. Isso é cansativo (ou melhor: lento), mas funciona em geral.

Onde eu estou absolutamente preso, estou reinstalando os pacotes PHP que eu mais preciso:

apt-get install php5-curl

Setting up php5-curl (5.4.4-14+deb7u10) ...
dpkg: error processing php5-curl (--configure):
 subprocess installed post-installation script returned error exit status 10

Como outros módulos php5 também estão falhando, estou relutante em apenas remover os scripts de pós-instalação - eu precisaria remover alguns deles para instalar o PHP.

Para ver o que há de errado com a pós-instalação, executei-o manualmente:

pi@prodpi ~ $ sudo sh -x /var/lib/dpkg/info/php5-curl.postinst configure && echo &?
pi@prodpi ~ $ + set -e
+ inidir=/etc/php5/mods-available
+ [ configure = configure ]
+ inifile=curl.ini
+ sed -ne s/^; priority=\([0-9]\+\)$//p /usr/share/php5/curl/curl.ini
+ priority=20
+ ucf /usr/share/php5/curl/curl.ini /etc/php5/mods-available/curl.ini

[2]+ Exit 10  

Apenas a execução do último comando fornece:

pi@prodpi ~ $ sudo ucf -v /usr/share/php5/curl/curl.ini /etc/php5/mods-available/curl.ini
ucf: The new file is /usr/share/php5/curl/curl.ini
ucf: The Destination file is /etc/php5/mods-available/curl.ini
ucf: The Source directory is /usr/share/php5/curl
ucf: The State directory is /var/lib/ucf
The hash file exists
egrep [[:space:]]\/etc\/php5\/mods\-available\/curl\.ini$ /var/lib/ucf/hashfile
ucf: The new file is /usr/share/php5/curl/curl.ini
ucf: The Destination file is /etc/php5/mods-available/curl.ini
ucf: The Source directory is /usr/share/php5/curl
ucf: The State directory is /var/lib/ucf
The hash file exists

No entanto, ele sai com o código 20, não com 10, então não tenho certeza se estou realmente procurando no lugar certo.

A execução com -d9 mostra:

root@prodpi:/home/pi# ucf -v -d9 /usr/share/php5/curl/curl.ini /etc/php5/mods-available/curl.ini
ucf: The Debug value is 9
ucf: The new file is /usr/share/php5/curl/curl.ini
ucf: The Destination file is /etc/php5/mods-available/curl.ini
ucf: The Source directory is /usr/share/php5/curl
ucf: The State directory is /var/lib/ucf
The hash file exists
egrep [[:space:]]\/etc\/php5\/mods\-available\/curl\.ini$ /var/lib/ucf/hashfile
The new start file is      '/usr/share/php5/curl/curl.ini\'
The destination is         '/etc/php5/mods-available/curl.ini\' ('\/etc\/php5\/mods\-available\/curl\.ini\')
The history is kept under  \'/usr/share/php5/curl\'
The file may be cached at \'/var/lib/ucf/cache/:etc:php5:mods-available:curl.ini\'
The destination file does not exist.
The old md5sum does not exist.
The new file exists, and has md5sum:
4e260877185bdf259be69a8165c00ab2  /usr/share/php5/curl/curl.ini
Historical md5sums are not available
ucf: The Debug value is 9
ucf: The new file is /usr/share/php5/curl/curl.ini
ucf: The Destination file is /etc/php5/mods-available/curl.ini
ucf: The Source directory is /usr/share/php5/curl
ucf: The State directory is /var/lib/ucf
The hash file exists
root@prodpi:/home/pi# $?
bash: 20: command not found

O que posso fazer para encontrar / curar a fonte dos problemas de pós-instalação?

    
por andig 09.06.2014 / 18:14

0 respostas