[php-maint] Bug#691917: error during php5-cli installation because hash error with ucf

legerf.innovtechnology at gmail.com legerf.innovtechnology at gmail.com
Wed Oct 31 11:20:52 UTC 2012

Package: php5-cli
Version: 5.3.3-7+squeeze14

During php5-cli installation on a webserver, the process stop because an 
hash error occur.

$ sudo apt-get install php5-cli
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
   php5-common php5-suhosin
Suggested packages:
The following NEW packages will be installed:
   php5-cli php5-common php5-suhosin
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,588 kB of archives.
After this operation, 8,970 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.us.debian.org/debian/ squeeze/main php5-common amd64 
5.3.3-7+squeeze14 [556 kB]
Get:2 http://ftp.us.debian.org/debian/ squeeze/main php5-cli amd64 
5.3.3-7+squeeze14 [2,943 kB]
Get:3 http://ftp.us.debian.org/debian/ squeeze/main php5-suhosin amd64 [88.4 kB]
Fetched 3,588 kB in 2s (1,203 kB/s)
Selecting previously deselected package php5-common.
(Reading database ... 28435 files and directories currently installed.)
Unpacking php5-common (from .../php5-common_5.3.3-7+squeeze14_amd64.deb) ...
Selecting previously deselected package php5-cli.
Unpacking php5-cli (from .../php5-cli_5.3.3-7+squeeze14_amd64.deb) ...
Selecting previously deselected package php5-suhosin.
Unpacking php5-suhosin (from .../php5-suhosin_0.9.32.1-1_amd64.deb) ...
Processing triggers for man-db ...
Setting up php5-common (5.3.3-7+squeeze14) ...
Setting up php5-cli (5.3.3-7+squeeze14) ...
ucf: The Source directory is /usr/share/php5
ucf: The State directory is /var/lib/ucf
The hash file exists
egrep [[:space:]]\/etc\/php5\/cli\/php\.ini$ /var/lib/ucf/hashfile
The new start file is      `/usr/share/php5/php.ini-production.cli\'
The destination is         `/etc/php5/cli/php.ini\' 
The history is kept under  \'/usr/share/php5\'
The file may be cached at \'/var/lib/ucf/cache/:etc:php5:cli:php.ini\'
The destination file does not exist.
The old md5sum does not exist.
The new file exists, and has md5sum:
9f9a60a7ee90d2a6e1a698cbeff89321  /usr/share/php5/php.ini-production.cli
Historical md5sums are not available
ucf: The Source directory is /usr/share/php5
ucf: The State directory is /var/lib/ucf

The hash file exists
dpkg: error processing php5-cli (--configure):
  subprocess installed post-installation script returned error exit 
status 128
configured to not write apport reports
                                       dpkg: dependency problems prevent 
configuration of php5-suhosin:
  php5-suhosin depends on phpapi-20090626; however:
   Package phpapi-20090626 is not installed.
   Package php5-cli which provides phpapi-20090626 is not configured yet.
dpkg: error processing php5-suhosin (--configure):
  dependency problems - leaving unconfigured
configured to not write apport reports
                                       Errors were encountered while 
E: Sub-process /usr/bin/dpkg returned an error code (1)

I'm using Debian 6.0.6, and ucf Version: 3.0025+nmu1


More information about the pkg-php-maint mailing list