Update failed... or not ?

My last few updates seemed to have gone wrong, apparently due to a change in a file (which is possible). However, even though I am presented (in the log) with a few choice, I don't know how to apply them.

Here is the log I received (sorry it is a bit long) :

Installing package(s) with command apt-get -y install gandi-hosting-vm ..
Setting up php5-common (5.2.6.dfsg.1-1+lenny10) ...

Configuration file `/etc/cron.d/php5'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : background this process to examine the situation
The default action is to keep your current version.
*** php5 (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing php5-common (--configure):
EOF on stdin at conffile prompt
dpkg: dependency problems prevent configuration of php5-mcrypt:
php5-mcrypt depends on php5-common (= 5.2.6.dfsg.1-1+lenny10); however:
  Package php5-common is not configured yet.
dpkg: error processing php5-mcrypt (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5-cli:
php5-cli depends on php5-common (= 5.2.6.dfsg.1-1+lenny10); however:
  Package php5-common is not configured yet.
dpkg: error processing php5-cli (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libapache2-mod-php5:
libapache2-mod-php5 depends on php5-common (= 5.2.6.dfsg.1-1+lenny10); however:
  Package php5-common is not configured yet.
dpkg: error processing libapache2-mod-php5 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5:
php5 depends on php5-common (>= 5.2.6.dfsg.1-1+lenny10); however:
  Package php5-common is not configured yet.
dpkg: error processing php5 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5-imap:
php5-imap depends on php5-common (= 5.2.6.dfsg.1-1+lenny10); however:
  Package php5-common is not configured yet.
dpkg: error processing php5-imap (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5-mysql:
php5-mysql depends on php5-common (= 5.2.6.dfsg.1-1+lenny10); however:
  Package php5-common is not configured yet.
dpkg: error processing php5-mysql (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5-cgi:
php5-cgi depends on php5-common (= 5.2.6.dfsg.1-1+lenny10); however:
  Package php5-common is not configured yet.
dpkg: error processing php5-cgi (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5-gd:
php5-gd depends on phpapi-20060613; however:
  Package phpapi-20060613 is not installed.
  Package libapache2-mod-php5 which provides phpapi-20060613 is not configured yet.
  Package php5-cli which provides phpapi-20060613 is not configured yet.
  Package php5-cgi which provides phpapi-20060613 is not configured yet.
php5-gd depends on php5-common (= 5.2.6.dfsg.1-1+lenny10); however:
  Package php5-common is not configured yet.
dpkg: error processing php5-gd (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php-pear:
php-pear depends on php5-common (>= 5.2.6.dfsg.1-1+lenny10); however:
  Package php5-common is not configured yet.
php-pear depends on php5-cli | php4-cli; however:
  Package php5-cli is not configured yet.
  Package php4-cli is not installed.
dpkg: error processing php-pear (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5-curl:
php5-curl depends on phpapi-20060613; however:
  Package phpapi-20060613 is not installed.
  Package libapache2-mod-php5 which provides phpapi-20060613 is not configured yet.
  Package php5-cli which provides phpapi-20060613 is not configured yet.
  Package php5-cgi which provides phpapi-20060613 is not configured yet.
php5-curl depends on php5-common (= 5.2.6.dfsg.1-1+lenny10); however:
  Package php5-common is not configured yet.
dpkg: error processing php5-curl (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
php5-common
php5-mcrypt
php5-cli
libapache2-mod-php5
php5
php5-imap
php5-mysql
php5-cgi
php5-gd
php-pear
php5-curl
Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be upgraded:
  gandi-hosting-vm
1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
11 not fully installed or removed.
Need to get 30.2kB of archives.
After this operation, 0B of additional disk space will be used.
Get:1 http://mirrors.gandi.net lenny/main gandi-hosting-vm 1.0.0-r4924 [30.2kB]
Fetched 30.2kB in 0s (623kB/s)
(Reading database ... 66542 files and directories currently installed.)
Preparing to replace gandi-hosting-vm 1.0.0-r4783 (using .../gandi-hosting-vm_1.0.0-r4924_all.deb) ...
Unpacking replacement gandi-hosting-vm ...
Setting up php5-common (5.2.6.dfsg.1-1+lenny10) ...

Configuration file `/etc/cron.d/php5'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : background this process to examine the situation
The default action is to keep your current version.
*** php5 (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing php5-common (--configure):
EOF on stdin at conffile prompt
dpkg: dependency problems prevent configuration of libapache2-mod-php5:
libapache2-mod-php5 depends on php5-common (= 5.2.6.dfsg.1-1+lenny10); however:
  Package php5-common is not configured yet.
dpkg: error processing libapache2-mod-php5 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5-cli:
php5-cli depends on php5-common (= 5.2.6.dfsg.1-1+lenny10); however:
  Package php5-common is not configured yet.
dpkg: error processing php5-cli (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php-pear:
php-pear depends on php5-common (>= 5.2.6.dfsg.1-1+lenny10); however:
  Package php5-common is not configured yet.
php-pear depends on php5-cli | php4-cli; however:
  Package php5-cli is not configured yet.
  Package php4-cli is not installed.
dpkg: error processing php-pear (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5-cgi:
php5-cgi depends on php5-common (= 5.2.6.dfsg.1-1+lenny10); however:
  Package php5-common is not configured yet.
dpkg: error processing php5-cgi (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5:
php5 depends on libapache2-mod-php5 (>= 5.2.6.dfsg.1-1+lenny10) | libapache2-mod-php5filter (>= 5.2.6.dfsg.1-1+lenny10) | php5-cgi (>= 5.2.6.dfsg.1-1+lenny10); however:
  Package libapache2-mod-php5 is not configured yet.
  Package libapache2-mod-php5filter is not installed.
  Package php5-cgi is not configured yet.
php5 depends on php5-common (>= 5.2.6.dfsg.1-1+lenny10); however:
  Package php5-common is not configured yet.
dpkg: error processing php5 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5-curl:
php5-curl depends on phpapi-20060613; however:
  Package phpapi-20060613 is not installed.
  Package libapache2-mod-php5 which provides phpapi-20060613 is not configured yet.
  Package php5-cli which provides phpapi-20060613 is not configured yet.
  Package php5-cgi which provides phpapi-20060613 is not configured yet.
php5-curl depends on php5-common (= 5.2.6.dfsg.1-1+lenny10); however:
  Package php5-common is not configured yet.
dpkg: error processing php5-curl (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5-gd:
php5-gd depends on phpapi-20060613; however:
  Package phpapi-20060613 is not installed.
  Package libapache2-mod-php5 which provides phpapi-20060613 is not configured yet.
  Package php5-cli which provides phpapi-20060613 is not configured yet.
  Package php5-cgi which provides phpapi-20060613 is not configured yet.
php5-gd depends on php5-common (= 5.2.6.dfsg.1-1+lenny10); however:
  Package php5-common is not configured yet.
dpkg: error processing php5-gd (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5-imap:
php5-imap depends on phpapi-20060613; however:
  Package phpapi-20060613 is not installed.
  Package libapache2-mod-php5 which provides phpapi-20060613 is not configured yet.
  Package php5-cli which provides phpapi-20060613 is not configured yet.
  Package php5-cgi which provides phpapi-20060613 is not configured yet.
php5-imap depends on php5-common (= 5.2.6.dfsg.1-1+lenny10); however:
  Package php5-common is not configured yet.
dpkg: error processing php5-imap (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5-mcrypt:
php5-mcrypt depends on phpapi-20060613; however:
  Package phpapi-20060613 is not installed.
  Package libapache2-mod-php5 which provides phpapi-20060613 is not configured yet.
  Package php5-cli which provides phpapi-20060613 is not configured yet.
  Package php5-cgi which provides phpapi-20060613 is not configured yet.
php5-mcrypt depends on php5-common (= 5.2.6.dfsg.1-1+lenny10); however:
  Package php5-common is not configured yet.
dpkg: error processing php5-mcrypt (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5-mysql:
php5-mysql depends on phpapi-20060613; however:
  Package phpapi-20060613 is not installed.
  Package libapache2-mod-php5 which provides phpapi-20060613 is not configured yet.
  Package php5-cli which provides phpapi-20060613 is not configured yet.
  Package php5-cgi which provides phpapi-20060613 is not configured yet.
php5-mysql depends on php5-common (= 5.2.6.dfsg.1-1+lenny10); however:
  Package php5-common is not configured yet.
dpkg: error processing php5-mysql (--configure):
dependency problems - leaving unconfigured
Setting up gandi-hosting-vm (1.0.0-r4924) ...
Installing new version of config file /etc/gandi/plugins.d/05-config_hostname ...
Installing new version of config file /etc/init.d/gandi-mount ...
Installing new version of config file /etc/init.d/gandi-kernel ...
Installing new version of config file /etc/init.d/gandi-config ...
Errors were encountered while processing:
php5-common
libapache2-mod-php5
php5-cli
php-pear
php5-cgi
php5
php5-curl
php5-gd
php5-imap
php5-mcrypt
php5-mysql
E: Sub-process /usr/bin/dpkg returned an error code (1)
.. install failed!

Successfully installed 2 packages.

Since I guess all future updates will have the same issue, what should I do ? Best regards.

Status: 
Active

Comments

Hrm, that's an unusual problem you have there!

What happens if you type this:

dpkg --configure php5-common

Does that work, or do you receive an error of some sort?

This is what I receive :

Configuration file `/etc/cron.d/php5' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : background this process to examine the situation The default action is to keep your current version. *** php5 (Y/I/N/O/D/Z) [default=N] ?

Try choosing "N" at the prompt there to have it preserve that file. If it continues on without any additional errors, it should then be safe to complete the upgrade of your other packages.

OK. I said 'N' and then I ran a new update and this time everything went well. Thanks.

What about the previous updates ? Should I run them again ?

Type this on the command line:

apt-get update && apt-get upgrade

It that offers to upgrade any files, go ahead and have it do so. If it doesn't offer to upgrade any files, then you're good to go :-)

It found one to upgrade : libssl0.9.8

Everything went well. Thank you for your help.