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.
I followd the execution of debconf recursively.
The following debconf/ frontend sh -x /usr/bin/ucf --three-way --debconf-ok /var/run/ samba/upgrades/ smb.conf /etc/samba/smb.conf tefile /var/lib/ dpkg/info/ ucf.templates ucf dpkg/info/ ucf.templates ucf dpkg/info/ ucf.templates ucf dpkg/info/ ucf.templates: No such file or directory
/usr/share/
failed in
+ db_x_loadtempla
+ _db_cmd X_LOADTEMPLATEFILE /var/lib/
+ IFS= printf %s\n X_LOADTEMPLATEFILE /var/lib/
+ IFS=
read -r _db_internal_line
+ RET=10 failed to open /var/lib/
+ return 10
/var/lib/ dpkg/info/ ucf.templates was missing
But it does not belong to the files I moved away: dpkg_bug/ ucf.*: No such file or directory
LANG=C ls ~/dpkg_bug/ucf.*
ls: cannot access /home/xxx/
A reinstall of ucf fixed this for me.