UPGRADE 5.0 Failed


Upgrading UCS to version 5.0 is failing with the following log of error.

Checking adc_mapping ...                          OK
Checking adc_multiinstance_mapping ...            OK
Checking architecture ...                         OK
Checking blocking_apps ...                        Unable to cache apps
Unable to cache apps
Checking default_master_packages ...              OK
Checking disk_space ...                           OK
Checking failed_ldif ...                          OK
Checking for_postgresql94 ...                     OK
Checking hold_packages ...                        OK
Checking kernel ...                               OK
Checking kolab_schema ...                         FAIL
Checking ldap_connection ...                      OK
Checking ldap_schema ...                          61a3748b /etc/ldap/slapd.conf:                                                                                                                                                              line 256: rootdn is always granted unlimited privileges.
61a3748b /etc/ldap/slapd.conf: line 264: rootdn is always granted unlimited priv                                                                                                                                                             ileges.
Checking legacy_objects ...                       OK
Checking master_version ...                       OK
Checking md5_signature_is_used ...                OK
Checking min_version ...                          OK
Checking minimum_ucs_version_of_all_systems_in_domain ... FAIL
Checking old_packages ...                         FAIL
Checking overwritten_umc_templates ...            OK
Checking ox_schema ...                            OK
Checking package_status ...                       OK
Checking python_ucr_template_compatibility ...    FAIL
Checking python_ucsschool_import_hook_compatibility ... OK
Checking role_package_removed ...                 OK
Checking samba_server_schannel ...                OK
Checking samba_tdb_size ...                       OK
Checking slapd_on_member ...                      OK
Checking ssh ...                                  OK
Checking system_date_too_old ...                  OK
Checking system_role ...                          OK
Checking term ...                                 OK
Checking tls_public_key_size ...                  OK
Checking tls_public_key_size_ucs-sso ...          OK
Checking usr_mountpoint ...                       OK
Checking valid_machine_credentials ...            OK

The system can not be updated to UCS 5.0 due to the following reasons:

The following UCR templates are not compatible with Python 3:
         /etc/univention/templates/files/etc/ldap/slapd.conf.d/20univention-kola                                                                                                                                                             b_schema (package: univention-legacy-kolab-schema)
See <https://help.univention.com/t/17948> for information on how to proceed with                                                                                                                                                              each template.

The update to 5.0 is currently not possible,
because the following Apps are not available for UCS 5.0:
 * Desktop Environment (KDE)

WARNING: The following packages from UCS-4 are still installed, which are no lon                                                                                                                                                             ger supported with UCS-5:
        univention-kde  Mark KDE as manually installed "apt-mark manual kde-stan                                                                                                                                                             dard" to keep KDE

Use "univention-remove --purge" with the packages as following arguments to remo                                                                                                                                                             ve them

 The package univention-legacy-kolab-schema is installed. This package is
 incompatible with UCS 5.0-0.

 As the package contains a LDAP schema extension, this extension (a) has to
 registered in the LDAP database or (b) has to be removed before the update
 to UCS 5.0 is possible.

 Note: These steps are only required on the Primary Node. On non-primary systems                                                                                                                                                             ,
       the package can be removed without step (a) or (b).

 (a) Register LDAP schema files from univention-legacy-kolab-schema:
     To register the LDAP schema, run the following commands:
     cat /usr/share/univention-ldap/schema/legacy/rfc2739.schema > /opt/kolab-le                                                                                                                                                             gacy.schema
     cat /usr/share/univention-ldap/schema/legacy/kolab2.schema >> /opt/kolab-le                                                                                                                                                             gacy.schema
     cat /usr/share/univention-ldap/schema/legacy/univention-kolab2.schema >> /o                                                                                                                                                             pt/kolab-legacy.schema
     cat /usr/share/univention-ldap/schema/legacy/kolab-legacy.schema >> /opt/ko                                                                                                                                                             lab-legacy.schema
     bash -c 'source /usr/share/univention-lib/ldap.sh && ucs_registerLDAPExtens                                                                                                                                                             ion --packagename "univention-legacy-kolab-schema" --packageversion "3.0.0-1.22.                                                                                                                                                             201309110849" --schema /opt/kolab-legacy.schema'

 or (b) Remove the LDAP schema extension:
        Please visit https://help.univention.com/t/6443 for how to remove LDAP s                                                                                                                                                             chema extensions
        (remove all attributes and objectclasses from that schema from the LDAP                                                                                                                                                              database).

 After either (a) or (b) has been completed, the package has to be removed from                                                                                                                                                              this server:
  univention-remove --purge univention-legacy-kolab-schema

The following extensions are incompatible with UCS 5.0:
        cn=container/msgpo,cn=udm_module,cn=univention,dc=airesistemas,dc=com: [                                                                                                                                                             unspecified..unspecified)
        cn=settings/mswmifilter,cn=udm_module,cn=univention,dc=airesistemas,dc=c                                                                                                                                                             om: [unspecified..unspecified)
        cn=policies/mailquota,cn=udm_module,cn=univention,dc=airesistemas,dc=com                                                                                                                                                             : [3.2-0..unspecified)
        cn=settings/msprintconnectionpolicy,cn=udm_module,cn=univention,dc=aires                                                                                                                                                             istemas,dc=com: [unspecified..unspecified)

Error: Update aborted by pre-update script of release 5.0-0
exitcode of univention-updater: 1

Please help on confirmation of the correct set of instructions to continue with upgrade process.

According to logs it should be
#univention-remove --purge univention-legacy-kolab-schema

Related to KDE removal I thought Univention Web based Portal is based on KDE. Please advice on what to do with this package.

Thank you,


I have a few of the same errors.

Can anyone shed some light on this 7 month old thread?

The system can not be updated to UCS 5.0 due to the following reasons:

The following extensions are incompatible with UCS 5.0:
	cn=container/msgpo,cn=udm_module,cn=univention,dc=dlkpc,dc=lan: [unspecified..unspecified)
	cn=settings/mswmifilter,cn=udm_module,cn=univention,dc=dlkpc,dc=lan: [unspecified..unspecified)
	cn=settings/msprintconnectionpolicy,cn=udm_module,cn=univention,dc=dlkpc,dc=lan: [unspecified..unspecified)

Error: Update aborted by pre-update script of release 5.0-0