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

Ondřej Surý ondrej at debian.org
Wed Oct 31 18:10:07 UTC 2012


tags 691917 +unreproducible
thank you

Looks like your system is somehow broken, because I cannot reproduce
this in the chroot environment:

--cut here--
Setting up php5-cli (5.3.3-7+squeeze14) ...

Creating config file /etc/php5/cli/php.ini with new version
update-alternatives: using /usr/bin/php5 to provide /usr/bin/php (php)
in auto mode.
root at howl:/#
--cut here--

On Wed, Oct 31, 2012 at 4:23 PM, frederic.leger
<frederic.leger at innovtechnology.fr> wrote:
> These commands don't resolve the problem. It's the same error.
>
> $ sudo ucfq -v php5-cli
> <no output>
>
> $ sudo ucf --purge /etc/php5/cli/php.ini
> ucf: The Source directory is /tmp
> 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      `\'
> The destination is         `/etc/php5/cli/php.ini\'
> (`\/etc\/php5\/cli\/php\.ini\')
> The history is kept under  \'/tmp\'
> 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 does not exist.
> Historical md5sums are not available
> Preparing to purge /etc/php5/cli/php.ini
> egrep -v [[:space:]]\/etc\/php5\/cli\/php\.ini$ /var/lib/ucf/hashfile
> 20dfa39d9202ffb9b69c186cb973a9b2  /etc/apt/listchanges.conf
> 3e94f238294cc61b047e7ae50115dffc  /etc/idmapd.conf
> 94d16c8a97bbd7e5845ea67ef8dace3c  /etc/default/nfs-common
> 01de0bd1b00e2ca04ebb873ace6f20fe  /etc/default/grub
> 800a6cf5832a236c68ddbf9f27410fe0  /etc/logrotate.d/clamav-freshclam
> 4fd7d3651611ebbc4a201cca5f1cd25a  /etc/clamav/freshclam.conf
> 412c26ec3ef2ee7e2902fea287f92785  /etc/clamav/clamd.conf
> The cache file is :etc:php5:cli:php.ini
>
> $ sudo ucfr --purge php5-cli /etc/php5/cli/php.ini
> ucfr: The State directory is /var/lib/ucf
> ucfr: The registry exists
> ucfr: Association already purged. No changes.
>
> $ sudo apt-get install php5-cli
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> php5-cli is already the newest version.
> 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
> 1 not fully installed or removed.
> After this operation, 0 B of additional disk space will be used.
> Do you want to continue [Y/n]?
> 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\'
> (`\/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
>                                       Errors were encountered while
> processing:
>  php5-cli
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
> $ cat /var/lib/ucf/hashfile
> 20dfa39d9202ffb9b69c186cb973a9b2  /etc/apt/listchanges.conf
> 3e94f238294cc61b047e7ae50115dffc  /etc/idmapd.conf
> 94d16c8a97bbd7e5845ea67ef8dace3c  /etc/default/nfs-common
> 01de0bd1b00e2ca04ebb873ace6f20fe  /etc/default/grub
> 800a6cf5832a236c68ddbf9f27410fe0  /etc/logrotate.d/clamav-freshclam
> 4fd7d3651611ebbc4a201cca5f1cd25a  /etc/clamav/freshclam.conf
> 412c26ec3ef2ee7e2902fea287f92785  /etc/clamav/clamd.conf
> $ cat /var/lib/ucf/registry
> grub-pc      /etc/default/grub
> $ ls /var/lib/ucf/cache/
> :etc:apt:listchanges.conf  :etc:clamav:freshclam.conf
> :etc:default:nfs-common  :etc:logrotate.d:clamav-freshclam
> :etc:clamav:clamd.conf     :etc:default:grub :etc:idmapd.conf
>
> no trace of php.ini !
>
> Thanks.
>
> _______________________________________________
> pkg-php-maint mailing list
> pkg-php-maint at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-maint



-- 
Ondřej Surý <ondrej at sury.org>



More information about the pkg-php-maint mailing list