Comment 3 for bug 7226

Revision history for this message
In , Steve Langasek (vorlon) wrote : Re: Bug#262148: php4: fails post-installation; returned error exit status 20

tags 262148 unreproducible
severity 262148 important
thanks

On Fri, Jul 30, 2004 at 12:25:09AM +0200, Shot wrote:
> `aptitude install php4` on a brand new sarge-upgraded-to-sid
> system (just after installing apache) is broken:

> Reading Package Lists... Done
> Building Dependency Tree
> Reading extended state information
> Initializing package states... Done
> Reading task descriptions... Done
> No packages will be installed, upgraded, or removed.
> 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
> Need to get 0B of archives. After unpacking 0B will be used.
> Writing extended state information... Done
> Setting up php4 (4.3.8-3) ...
> /
> /
> dpkg: error processing php4 (--configure):
> subprocess post-installation script returned error exit status 20
> Errors were encountered while processing:
> php4
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> Ack! Something bad happened while installing packages. Trying to recover:
> Setting up php4 (4.3.8-3) ...
> /home/shot
> /home/shot
> dpkg: error processing php4 (--configure):
> subprocess post-installation script returned error exit status 128
> Errors were encountered while processing:
> php4
> Reading Package Lists... Done
> Building Dependency Tree
> Reading extended state information
> Initializing package states... Done
> Reading task descriptions... Done

# aptitude install php4
Reading Package Lists... Done
Building Dependency Tree
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following NEW packages will be installed:
  php4
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/1743kB of archives. After unpacking 3772kB will be used.
Writing extended state information... Done
Reading package fields... Done
Reading package status... Done
Retrieving bug reports... Done
Preconfiguring packages ...
Selecting previously deselected package php4.
(Reading database ... 166106 files and directories currently installed.)
Unpacking php4 (from .../php4_4%3a4.3.8-3_alpha.deb) ...
Setting up php4 (4.3.8-3) ...
Replacing config file /etc/apache/modules.conf with new version

Reading Package Lists... Done
Building Dependency Tree
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
#

You'll have to provide more information about your system; there doesn't
seem to be a problem in general with installing this package.

In particular, this section of your log looks very suspicious:

> Setting up php4 (4.3.8-3) ...
> /
> /
> dpkg: error processing php4 (--configure):
> subprocess post-installation script returned error exit status 20
> Errors were encountered while processing:
> php4
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> Ack! Something bad happened while installing packages. Trying to recover:
> Setting up php4 (4.3.8-3) ...
> /home/shot
> /home/shot
> dpkg: error processing php4 (--configure):

There is no reason why the php4 postinst script would be outputting
directory names on its own. Something else seems to be broken on your
system.

--
Steve Langasek
postmodern programmer