Univention Bugzilla – Bug 53312
Purge univention-corporate-client-schema before upgrade
Last modified: 2021-05-25 15:58:50 CEST
The upgrade to UCS 5.0 with installed univention-corporate-client-schema causes: * Error due to: univention-corporate-client-schema: /etc/univention/templates/files/etc/ldap/slapd.conf.d/65ucc updater.log shows: =========================================== Failed to process Subfile /etc/univention/templates/files/etc/python2.6/sitecustomize.py.d/10apport.py Failed to process Subfile /etc/univention/templates/files/etc/python2.6/sitecustomize.py.d/20utf8.py File: /etc/init.d/slapd Multifile: /etc/ldap/slapd.conf File "<stdin>", line 18 ''' % { 'access' : access } ^ SyntaxError: invalid syntax File "<stdin>", line 18 ''' % { 'access' : access } ^ SyntaxError: invalid syntax File "<stdin>", line 18 ''' % { 'access' : access } ^ SyntaxErr → We have to purge the package in preup.sh
Added the package to the list of to be purged packages: univention-updater (15.0.3-63) a8eb9d7eb84f | Bug #53312: let univention-corporate-client-schema be purged during upgrade Purged are: ucc-management-integration* univention-corporate-client-schema* Therefore invalid files are removed: /usr/lib/univention-directory-listener/system/ucc-nss-passwd.py /etc/univention/templates/files/etc/ldap/slapd.conf.d/65ucc The schema /usr/share/univention-corporate-client-schema/univention-corporate-client.schema is also removed, and seems not to be registered in LDAP but seems copied to /var/lib/univention-ldap/local-schema/univention-corporate-client.schema. The check "update_check_legacy_objects" forces also to remove all UCC objects.
Update is blocked with "univention-corporate-client-schema" installed -> OK purge of package is possible -> OK update is not blocked after purge -> OK system upgrade -> OK
UCS 5.0 has been released: https://docs.software-univention.de/release-notes-5.0-0-en.html https://docs.software-univention.de/release-notes-5.0-0-de.html If this error occurs again, please use "Clone This Bug".