Univention Bugzilla – Bug 37534
Update to UCS 4 breaks if /var/lib/samba/secrets.tdb (or others) exist
Last modified: 2015-02-10 15:34:49 CET
Ticket#2015011321000424 samba-libs.preinst breaks if some tdb files exist in /var/lib/samba/ AND /var/lib/samba/private/ --- for file in passdb.tdb secrets.tdb schannel_store.tdb idmap2.tdb do if [ -e /var/lib/samba/$file ] then if [ -e /var/lib/samba/private/$file ] && [ ! /var/lib/samba/$file -ef /var/lib/samba/private/$file ] then echo $file exists in /var/lib/samba and /var/lib/samba/private, aborting samba-libs preinst echo rename one of them to allow the install/upgrade to continue echo http://bugs.debian.org/726472 ls -al /var/lib/samba /var/lib/samba/private exit 1 fi fi done --- Selecting previously deselected package samba-libs. Unpacking samba-libs (from .../samba-libs_2%3a4.2.0~rc2-1.708.201411171637_amd64.deb) ... 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 This hit a customers DC-Backup that was migrated from Samba 3 to Samba 4 (while on UCS 3.x). The broken update left the system in a very bad state as networking and tty login where no longer possible.
Maybe we should fix it as erratum for UCS 3.2-4. Otherwise we should adjust the updater preup script.
I adjusted univention-updater/script/preup.sh. For QA I copied it to mirror/testing/4.0/maintained/4.0-0/all and signed it with the UCS 4.0 archive key.
It has been overwritten by a testing announce. Could you re-copy it? I've changed the cron job.
Ok, added some more logging output and re-installed it to testing.
(In reply to Arvid Requate from comment #4) > Ok, added some more logging output and re-installed it to testing. Please redirect the output the logfile. Otherwise it is difficult to retrace a support case.
Ok, adjusted.
OK, it works.
Advisory updated: 2014-12-01-univention-updater.yaml
(In reply to Arvid Requate from comment #8) > Advisory updated: 2014-12-01-univention-updater.yaml OK
<http://errata.univention.de/ucs/4.0/53.html>
*** Bug 37420 has been marked as a duplicate of this bug. ***