Comment 8 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

I followd the execution of debconf recursively.

The following
/usr/share/debconf/frontend sh -x /usr/bin/ucf --three-way --debconf-ok /var/run/samba/upgrades/smb.conf /etc/samba/smb.conf
failed in
+ db_x_loadtemplatefile /var/lib/dpkg/info/ucf.templates ucf
+ _db_cmd X_LOADTEMPLATEFILE /var/lib/dpkg/info/ucf.templates ucf
+ IFS= printf %s\n X_LOADTEMPLATEFILE /var/lib/dpkg/info/ucf.templates ucf
+ IFS=
 read -r _db_internal_line
+ RET=10 failed to open /var/lib/dpkg/info/ucf.templates: No such file or directory
+ return 10

/var/lib/dpkg/info/ucf.templates was missing

But it does not belong to the files I moved away:
LANG=C ls ~/dpkg_bug/ucf.*
ls: cannot access /home/xxx/dpkg_bug/ucf.*: No such file or directory

A reinstall of ucf fixed this for me.