/etc/php5/mods-available/curl.ini의 ucf 실패로 인해 php5-curl 설치가 중단되었습니다.

/etc/php5/mods-available/curl.ini의 ucf 실패로 인해 php5-curl 설치가 중단되었습니다.

Raspbian(debian) 설치를 망쳤습니다. 이 문제를 해결하기 위해 모든 패키지를 다시 설치하겠습니다. 짜증나지만(아니면 느리긴 하지만) 전반적으로 작동합니다.

제가 정말 고민하는 부분은 가장 필요한 PHP 패키지를 다시 설치하는 것입니다.

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

다른 php5 모듈도 실패하고 있기 때문에 설치 후 스크립트를 제거하기가 꺼려집니다. PHP를 설치하려면 그 중 여러 개를 제거해야 합니다.

설치 후 문제를 확인하기 위해 수동으로 실행했습니다.

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]\+\)$/\1/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  

마지막 명령만 실행하면 다음이 제공됩니다.

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

그러나 코드 10이 아닌 20으로 종료되므로 실제로 올바른 위치를 찾고 있는지 확실하지 않습니다.

러닝 -d9쇼:

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

설치 후 문제의 원인을 찾거나 해결하려면 어떻게 해야 합니까?

관련 정보