Please redirect me to the correct list if this happens to be off-topic here.
A post installation script on a private debian package performs the following:
mount /dev/hda2 /mnt/hda
mount -t proc none /mnt/hda/proc
chroot /mnt/hda /bin/bash -c 'apt-get install portmap'
Which finishes with,
Setting up portmap (5-26) ...
/usr/share/debconf/confmodule: line 42: 3: Bad file descriptor
dpkg: error processing portmap (--configure):
subprocess post-installation script returned error exit status 1
Line 42 is performing a 'set' command.
If I manually chroot and type 'apt-get install portmap' everything runs fine.
I am puzzled as to what the difference is between the manual or automated way.
Package details are:
debconf 1..5.11
apt 0.6.46.4-0.1
dpkg 1.13.25
portmap 5-26
All from mips etch.
Thanks,
Alex
--
To UNSUBSCRIBE, email to debian-dp...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
chroot /mnt/hda apt-get install portmap
You shouldn't need the extra shell.
--
Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/
Some extra information, the simplified process list for the installation,
520 ? S 0:00 /bin/sh /usr/share/pvscripts/pv_update
530 ? S 0:00 /usr/bin/apt-get install
--allow-unauthenticated --quiet --yes -o
Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold
bzip2 portmap
661 ? D 0:00 /usr/bin/dpkg --force-confdef
--force-confold --status-fd 12 --configure portmap
Alex
Please debian-dpkg@ is not the list for such discussions. Continue on
debia...@l.d.o or debian...@l.d.o.
(That said your problem is possibly related to the fact that you're trying
to run debconf twice, once in the normal postint and once in the postinst
of the apt-get invocation in the chroot)
Cheers,
--
Raphaël Hertzog
Le best-seller français mis à jour pour Debian Etch :
http://www.ouaza.com/livre/admin-debian/