Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

debconf: Bad file descriptor

91 views
Skip to first unread message

Alex Gonzalez

unread,
Jan 9, 2008, 7:30:29 AM1/9/08
to
Hi,

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

Neil Williams

unread,
Jan 9, 2008, 8:00:24 AM1/9/08
to
On Wed, 2008-01-09 at 12:28 +0000, Alex Gonzalez wrote:
> Hi,
>
> 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'

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/


signature.asc

Alex Gonzalez

unread,
Jan 9, 2008, 9:20:17 AM1/9/08
to
Thanks Neil, I tried that change but didn't make any difference.

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

Raphael Hertzog

unread,
Jan 9, 2008, 10:00:26 AM1/9/08
to
On Wed, 09 Jan 2008, Alex Gonzalez wrote:
> Thanks Neil, I tried that change but didn't make any difference.
>
> 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

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/

0 new messages