[05:26:34 /tmp]# apt-get dist-upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
Calculating Upgrade... Done
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 packages not fully installed or removed.
Need to get 0B of archives. After unpacking 0B will be used.
Do you want to continue? [Y/n] 
Setting up kbd (0.99-6) ...
dpkg: error processing kbd (--configure):
 subprocess post-installation script returned error exit status 10
Errors were encountered while processing:
 kbd
[05:28:18 /tmp]# /var/lib/dpkg/info/kbd.postinst 
[05:29:19 /tmp]# tail /var/lib/dpkg/info/kbd.postinst
fi
# End automatically added section
# Automatically added by dh_installdocs
if [ "$1" = "configure" ]; then
        if [ -d /usr/doc -a ! -e /usr/doc/kbd -a -d /usr/share/doc/kbd ]; then
                ln -sf ../share/doc/kbd /usr/doc/kbd
        fi
fi
# End automatically added section

[05:31:15 /tmp]# 


Does the error is caused simply because /var/lib/dpkg/info/kbd.postinst does 
not return an exit code on successful exit, or is it something else?

BTW: How could I have the returned code of some script being printed to the 
terminal?

Reply via email to