Problem: proxy.pac is missing after ugrade

Problem:

After an update the /var/www/proxy.pac file is missing and also is the template.

:~# ucr commit /var/www/proxy.pac
Warning: The file '/var/www/proxy.pac' is not registered as an UCR template.

Investigation:

/var/log/apt/history.log shows

Start-Date: 2024-01-12  22:33:34
Commandline: apt-get --yes remove univention-welcome-screen
Install: univention-container-role-server-common:amd64 (15.0.8-1, automatic), univention-docker-container-mode:amd64 (5.0.0-2A~5.0.0.202204131140, automatic), univention-
container-role-common:amd64 (15.0.8-1, automatic)
Remove: ucs-school-umc-exam:amd64 (10.0.10), ucs-school-webproxy:amd64 (16.0.7A~5.0.0.202204271758), univention-system-setup:amd64 (13.0.10-1), python-ucsschool-lib:amd64 (13.0.43), python3-ucsschool-lib:amd64 (13.0.43), univention-management-console:amd64 (12.0.32-4), ucs-school-umc-lessontimes:amd64 (8.0.3A~5.0.0.202108051557), python-ucs-school:amd64 (13.0.43), ucs-school-umc-distribution:amd64 (18.0.8), ucs-school-umc-computerroom:amd64 (12.0.15), ucs-school-umc-printermoderation:amd64 (17.1.4), ucs-school-umc-installer:amd64 (8.0.10), ucs-school-umc-lists:amd64 (3.0.9), ucs-school-replica:amd64 (13.0.15A~5.0.0.202205190959), ucs-school-umc-rooms:amd64 (17.0.9A~5.0.0.202207071451), ucs-school-umc-helpdesk:amd64 (16.0.7), univention-role-server-common:amd64 (15.0.8-1), ucs-school-umc-users:amd64 (16.0.8), univention-welcome-screen:amd64 (11.0.1-2A~5.0.0.202302061603), univention-role-common:amd64 (15.0.8-1), ucs-school-roleshares:amd64 (8.0.3A~5.0.0.202109081418), ucs-school-umc-groups:amd64 (10.0.10), ucs-school-umc-internetrules:amd64 (16.0.4A~5.0.0.202208110901), ucs-school-slave:amd64 (13.0.15A~5.0.0.202205190959), univention-management-console-module-setup:amd64 (13.0.10-1), univention-bind:amd64 (14.0.5-2A~5.0.0.202302061641)
End-Date: 2024-01-12  22:33:40

So the ucs-school-webproxy and ucs-school-slave role was deinstalled.

Solution:

univention-install univention-welcome-screen ucs-school-umc-exam ucs-school-webproxy univention-system-setup python-ucsschool-lib python3-ucsschool-lib univention-management-console ucs-school-umc-lessontimes python-ucs-school ucs-school-umc-distribution ucs-school-umc-computerroom ucs-school-umc-printermoderation ucs-school-umc-installer ucs-school-umc-lists ucs-school-replica ucs-school-umc-rooms ucs-school-umc-helpdesk univention-role-server-common ucs-school-umc-users univention-role-common ucs-school-umc-groups ucs-school-umc-internetrules univention-management-console-module-setup univention-bind

for checking:

Folgende Pakete sollten entfernt/zur automatischen Entfernung markiert werden:

Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
 univention-container-role-common univention-docker-container-mode
Verwenden Sie »apt autoremove«, um sie zu entfernen.
Die folgenden Pakete werden ENTFERNT:
 univention-container-role-server-common

+ diverse Pakete werden neu installiert
-------------------------
After that an
apt-get  autoremove
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
Die folgenden Pakete werden ENTFERNT:
  univention-container-role-common univention-docker-container-mode
0 aktualisiert, 0 neu installiert, 2 zu entfernen und 0 nicht aktualisiert.
Nach dieser Operation werden 34,8 kB Plattenplatz freigegeben.

A reboot should then be performed for safety reasons.

root cause:…

…was the remove of univention-welcome-screen.

apt-cache rdepends univention-welcome-screen
univention-welcome-screen
Reverse Depends:
  univention-app-appliance
  univention-system-setup
  univention-system-setup
  univention-role-common

univention-ldapsearch univentionSlavePackagesRemove=univention-welcome-screen

# Paketergaenzungen, update, policies, schein.me 
dn: cn=Paketergaenzungen,cn=update,cn=policies,dc=schein,dc=me
cn: Paketergaenzungen
objectClass: top
objectClass: univentionPolicy
objectClass: univentionPolicyPackagesSlave
objectClass: univentionObject
univentionObjectType: policies/slavepackages
univentionSlavePackagesRemove: univention-welcome-screen
univentionSlavePackages: bsd-mailx
[...]
Mastodon