Installation hangs at "Preconfiguring packages .. Fetched..."

Heiko Zang mixtlis at gmx.de
Wed Jan 19 12:21:37 CET 2005


> >>>>> On Tue, 18 Jan 2005 10:48:50 +0100 (MET), mixtlis at gmx.de said:
> 
>     > The installation starts und runs with no errors up to the point
> where  FAI
>     > starts my own script under the scripts directory. In this script a
> 'apt-get
>     > update' is executed and a following 'apt-get install
> \<packagename\>'
>     > retrieves the package but then stops with  "Preconfiguring packages
> ..
>     > Fetched 5515kB in 3s (1713kB/s)"
>> Try to detect which package is going to be preconfigured. Use ps aux and
>> this command:
>> 
>> COLUMNS=300 pstree -l
Did that and the relevant output is:
-init---rcS-+-cat
            |
            |-rcS---fai-do-scripts---bash-+-apt-get---apt-get
            |                             | 
             -tee                         |-yes
---------------------------------------------------------------

As you can see I use the pipe. And that configuration works without probs
when using fai with a 2.4 kernel version but not with 2.6.
Thats the command in the file in the scripts directory:
$ROOTCMD yes '' | $ROOTCMD apt-get install apache apache-common php4


> redirecting stdin from </dev/null? Maybe this may help.
Tried that ($ROOTCMD apt-get install apache apache-common php4> /dev/null)
but System hangs as well.
This is the output of pstree:
|-init---rcS-+-cat
             |                              
             |-rcS---fai-do-scripts---bash---apt-get---dpkg---php4.postinst
------------------------------------------------

This is the output pf ps -f:
init boot
  169 tty1     S      0:00  \_ /bin/bash /etc/init.d/rcS
  196 tty1     S      0:00      \_ cat /proc/kmsg
  405 tty1     S      0:00      \_ /bin/bash /etc/init.d/rcS
 2205 tty1     S      0:00      |   \_ /bin/sh /usr/bin/fai-do-scripts
/fai/scripts
 2245 tty1     S      0:00      |       \_ bash -x ./HE
 2248 tty1     S      0:00      |           \_ apt-get install apache
apache-common php4
2476 tty1     S      0:00      |               \_ /usr/bin/dpkg
--abort-after=4711 --force-confnew --configure apache-common apache php4
php4-gd2
2719 tty1     S      0:00      |                   \_ /bin/sh
/var/lib/dpkg/info/php4.postinst configure
---------------------------------------------

Even when using 'apt-get --assume-yes install' or 'apt-get --force-yes'
commands the installation hangs at php4.postinst.

Any more hints are appreciated.


regards,

Heiko Zang



More information about the linux-fai mailing list