Comment 3 for bug 1313739

Jean-Baptiste Camps (jbcamps) wrote :

Ok, it seems to be a known bug. When trying to reinstall samba-libs, the log states :
secrets.tdb exists in /var/lib/samba and /var/lib/samba/private, aborting samba-libs preinst
rename one of them to allow the install/upgrade to continue
http://bugs.debian.org/726472

Renaming the file and reinstalling seems to work.