Update from UCS 4.3-5 to 4.4-0 blocked when Samba4 is installed

Updates can be found at the end of this post.

When Samba4 in version 2:4.10.1-1A~4.3.0.202004231351 or libldb1 in version 2:1.5.7-1A~4.3.0.202004231326 is installed on UCS 4.3-5, the update to UCS 4.4-0 is currently blocked. Updating in UMC will fail, and the following message is shown in the updater.log:

ERROR: The update to UCS 4.4 is currently blocked due to a bug in the samba packages,
       see https://forge.univention.org/bugzilla/show_bug.cgi?id=51210. We are working
       on a solution. For more information please visit https://help.univention.com/t/14992.

We track this issue at Bug 51210 - Update to UCS 4.4-0 fails with Samba/AD failed due to DLZ bind9 error. We will also update this article once the issue is resolved and updates to UCS 4.4 are working.

2020-05-04 19:00 CEST
The package versions causing the issue have been removed from the download server. The update is only blocked for UCS 4.3-5 servers which already have the samba and libldb1 packages mentioned above version installed.

2020-05-05 13:00 CEST
If the problematic package versions are installed on UCS 4.3-5 and are blocking the update to UCS 4.4-0, the following commands can be executed to downgrade affected packages. Afterwards, UCS can be updated to the latest version.

Please check carefully which of the following scenarios matches your Samba4 installation on UCS and execute the commands accordingly. If the apt-get command below wants to remove any packages during the operation, do not accept and cancel the command.

UCS Server with Samba4

smbver="2:4.10.1-1A~4.3.0.202001141253"
ldbver="2:1.5.4-1A~4.3.0.201905151329"
DEBIAN_FRONTEND=noninteractive apt-get install samba=$smbver \
samba-common=$smbver \
samba-common-bin=$smbver \
libwbclient0=$smbver \
samba-libs=$smbver \
python-samba=$smbver \
libsmbclient=$smbver \
samba-dsdb-modules=$smbver \
samba-vfs-modules=$smbver \
winbind=$smbver \
smbclient=$smbver \
libldb1=$ldbver \
python-ldb=$ldbver

UCS@school DC master without Samba4

ldbver="2:1.5.4-1A~4.3.0.201905151329"
DEBIAN_FRONTEND=noninteractive apt-get install \
libldb1=$ldbver \
python-ldb=$ldbver

UCS@school DC master and other UCS@school servers with Samba4

smbver="2:4.10.1-1A~4.3.0.202001141253"
ldbver="2:1.5.4-1A~4.3.0.201905151329"
uldbver="6.0.0-7A~4.3.0.201905161053"
DEBIAN_FRONTEND=noninteractive apt-get install samba=$smbver \
samba-common=$smbver \
samba-common-bin=$smbver \
libwbclient0=$smbver \
samba-libs=$smbver \
python-samba=$smbver \
libsmbclient=$smbver \
samba-dsdb-modules=$smbver \
samba-vfs-modules=$smbver \
winbind=$smbver \
smbclient=$smbver \
libldb1=$ldbver \
python-ldb=$ldbver \
libunivention-ldb-modules=$uldbver
1 Like
Mastodon