Problem: Appliance upgrade to UCS 5 stops with error message

Problem:

The update of your UCS-appliance to UCS 5 stops with the following error message:

The system can not be updated to UCS 5.0 due to the following reasons: 
python_ucr_template_compatibility: The following UCR templates are not 
compatible with Python 3: 
/etc/univention/templates/files/usr/share/univention-web/js/umc/hooks/appliance.json

(package: univention-app-appliance) See https://help.univention.com/t/17948  for information on how to proceed 
with each template.

Solution:

This error-message indicates an old python-layout in your /etc/univention/templates/files/usr/share/univention-web/js/umc/hooks/appliance.json file.

You can find the appliance.json file for UCS 5 here:

To install it in your system, do the following:

root@example:~# wget https://raw.githubusercontent.com/univention/univention-corporate-server/5.0-0/base/univention-app-appliance/conffiles/usr/share/univention-web/js/umc/hooks/appliance.json -O /etc/univention/templates/files/usr/share/univention-web/js/umc/hooks/appliance.json
--2021-07-23 07:11:58--  https://raw.githubusercontent.com/univention/univention-corporate-server/5.0-0/base/univention-app-appliance/conffiles/usr/share/univention-web/js/umc/hooks/appliance.json
Auflösen des Hostnamens »raw.githubusercontent.com (raw.githubusercontent.com)« … 185.199.109.133, 185.199.111.133, 185.199.108.133, ...
Verbindungsaufbau zu raw.githubusercontent.com (raw.githubusercontent.com)|185.199.109.133|:443 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK
Länge: 416 [text/plain]
Wird in »»/etc/univention/templates/files/usr/share/univention-web/js/umc/hooks/appliance.json«« gespeichert.

/etc/univention/templates/files/usr/share/univention-web/js/umc/hook 100%[======================================================================================================================================================================>]     416  --.-KB/s    in 0s

2021-07-23 07:11:58 (12,6 MB/s) - »»/etc/univention/templates/files/usr/share/univention-web/js/umc/hooks/appliance.json«« gespeichert [416/416]

root@dduchon-dc1-2:~# ls -lah /etc/univention/templates/files/usr/share/univention-web/js/umc/hooks
insgesamt 12K
drwxr-xr-x 2 root root 4,0K Jul 23 07:11 .
drwxr-xr-x 3 root root 4,0K Jul 23 07:10 ..
-rw-r--r-- 1 root root  416 Jul 23 07:11 appliance.json
Mastodon