I browsed the ucf man page but didn't get much out of it, then I found the ucf line in the post install script /var/lib/dpkg/info/libapache2-mod-php5.postinst and added the -v flag to get verbose output. Now here's what I get:
Code:
$ sudo apt-get install php5
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up libapache2-mod-php5 (5.3.3-7) ...
ucf: The new file is /usr/share/php5/php.ini-production
ucf: The Destination file is /etc/php5/apache2/php.ini
ucf: The Source directory is /usr/share/php5
ucf: The State directory is /var/lib/ucf
The hash file exists
egrep [[:space:]]\/etc\/php5\/apache2\/php\.ini$ /var/lib/ucf/hashfile
ucf: The new file is /usr/share/php5/php.ini-production
ucf: The Destination file is /etc/php5/apache2/php.ini
ucf: The Source directory is /usr/share/php5
ucf: The State directory is /var/lib/ucf
The hash file exists
dpkg: error processing libapache2-mod-php5 (--configure):
subprocess installed post-installation script returned error exit status 128
dpkg: dependency problems prevent configuration of php5:
php5 depends on libapache2-mod-php5 (>= 5.3.3-7) | libapache2-mod-php5filter (>= 5.3.3-7) | php5-cgi (>= 5.3.3-7); however:
Package libapache2-mod-php5 is not configured yet.
Package libapache2-mod-php5filter is not installed.
Package php5-cgi is not installed.
dpkg: error processing php5 (--configure):
dependency problems - leaving unconfigured
configured to not write apport reports
configured to not write apport reports
Errors were encountered while processing:
libapache2-mod-php5
php5
E: Sub-process /usr/bin/dpkg returned an error code (1)
Then I tried throwing in the -n option so that the ucf line wouldn't do anything and I got the install to succeed. Do you see any potential problems that might arise from having done that? I guess I should be fine since this was a fresh install of Debian. I didn't have php installed before. Here was the output:
Code:
$ sudo apt-get install php5
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up libapache2-mod-php5 (5.3.3-7) ...
*** ERROR: Need exactly two arguments, got 3
Debian GNU/Linux ucf $Revision: 1.26 $.
Copyright (C) 2002-2005 Manoj Srivastava.
This is free software; see the GNU General Public Licence for copying
conditions. There is NO warranty.
Usage: ucf [options] new_file destination
Options:
-h, --help print this message
-s foo, --src-dir foo Set the src dir (historical md5sums live here)
--sum-file bar Force the historical md5sums to be read from
this file. Overrides any setting of --src-dir.
-d [n], --debug [n] Set the Debug level to N
-n, --no-action Dry run. No action is actually taken.
-v, --verbose Make the script verbose
--three-way Register this file in the cache, and turn on the
diff3 option allowing the merging of maintainer
changes into a (potentially modified) local
configuration file. )
--state-dir bar Set the state directory to bar instead of the
default '/var/lib/ucf'. Used mostly for testing.
--debconf-ok Indicate that it is ok for uct to use an already
running debconf instance for prompting.
--debconf-template bar
Specify an alternate, caller-provided debconf
template to use for prompting.
Usage: ucf -p destination
-p, --purge Remove any reference to destination from records
By default, the directory the new_file lives in is assumed to be the src-dir,
which is where we look for any historical md5sums.
Reloading web server config: apache2.
Setting up php5 (5.3.3-7) ...
remote@olpc:~$ sudo apt-get install libapache2-mod-php5
Reading package lists... Done
Building dependency tree
Reading state information... Done
libapache2-mod-php5 is already the newest version.
libapache2-mod-php5 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.