Comment 7 for bug 492257

Revision history for this message
Stefan Fleiter (stefan-fleiter) wrote : Re: package samba-common 2:3.4.0-3ubuntu5.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 10

It seems to be a debconf problem.

The following exists with exit code 10:
LANG=C DEBCONF_DEBUG=developer sudo debconf /var/lib/dpkg/info/grub-pc.postinst configure
LANG=C sudo debconf --frontend=readline /var/lib/dpkg/info/grub-pc.postinst configure

But this one succeeds (notice the additional "sh"):
LANG=C sudo debconf --frontend=readline sh /var/lib/dpkg/info/grub-pc.postinst configure