The root cause for Kopano being destroyed is definitely the WUI installation of nextcloud. As described elsewhere some aggressive apt cleanup ruins the whole repository structure:
15536 portalentries 19-12-05 15:23:16 [ DEBUG]: Links: ['https://192.168.178.1/nextcloud', 'https://UCS-Kopano.wgk.wager-gaertner-knoch.de/nextcloud']
15536 portalentries 19-12-05 15:23:16 [ DEBUG]: DN not found...
15536 portalentries 19-12-05 15:23:16 [ DEBUG]: ... creating
15536 actions.install 19-12-05 15:23:17 [ DEBUG]: Calling /etc/init.d/apache2 reload
15536 actions.install 19-12-05 15:23:18 [ INFO]: Reloading apache2 configuration (via systemctl): apache2.service.
15536 actions.install 19-12-05 15:23:18 [ DEBUG]: /etc/init.d/apache2 returned with 0
15536 actions.install.progress 19-12-05 15:23:18 [ DEBUG]: 10
15536 database 19-12-05 15:23:18 [ DEBUG]: 4.1/nextcloud=16.0.6-0 uses PostgreSQL
15536 database 19-12-05 15:23:18 [ INFO]: Installing/upgrading univention-postgresql
15536 packages 19-12-05 15:23:18 [ DEBUG]: Trying to get a lock for /var/lib/dpkg/lock or /var/lib/apt/lists/lock...
15536 packages 19-12-05 15:23:19 [ DEBUG]: Calling /usr/bin/apt-get update
....
During nextcloud installation, postgresql is being installed as well:
15536 packages 19-12-05 15:23:32 [ INFO]: Paketlisten werden gelesen...
15536 packages 19-12-05 15:23:32 [ DEBUG]: Calling /usr/bin/apt-get -o DPkg::Options::=--force-confold -o DPkg::Options::=--force-overwrite -o DPkg::Options::=--force-overwrite-dir --trivial-only=no --assume-yes --auto-remove install univention-postgresql
15536 packages 19-12-05 15:23:32 [ INFO]: Paketlisten werden gelesen...
15536 packages 19-12-05 15:23:32 [ INFO]: Abhängigkeitsbaum wird aufgebaut....
15536 packages 19-12-05 15:23:32 [ INFO]: Statusinformationen werden eingelesen....
15536 packages 19-12-05 15:23:32 [ INFO]: The following additional packages will be installed:
15536 packages 19-12-05 15:23:32 [ INFO]: postgresql-9.6 postgresql-client-9.6 postgresql-common
15536 packages 19-12-05 15:23:32 [ INFO]: postgresql-contrib-9.6 sysstat univention-postgresql-9.6
15536 packages 19-12-05 15:23:32 [ INFO]: Vorgeschlagene Pakete:
15536 packages 19-12-05 15:23:32 [ INFO]: locales-all postgresql-doc-9.6 libdbd-pg-perl isag
15536 packages 19-12-05 15:23:32 [ INFO]: Die folgenden Pakete werden ENTFERNT:
15536 packages 19-12-05 15:23:32 [ INFO]: altermime amavisd-new catdoc clamav clamav-base clamav-daemon
15536 packages 19-12-05 15:23:32 [ INFO]: clamav-freshclam clamdscan gcc gcc-6 kopano-backup kopano-dagent
15536 packages 19-12-05 15:23:32 [ INFO]: kopano-dagent-pytils kopano-gateway kopano-ical kopano-monitor
15536 packages 19-12-05 15:23:32 [ INFO]: kopano-python-utils kopano-search kopano-server kopano-server-packages
15536 packages 19-12-05 15:23:32 [ INFO]: kopano-spooler libarchive-zip-perl libasan3 libberkeleydb-perl libc-dev-bin
15536 packages 19-12-05 15:23:32 [ INFO]: libc6-dev libcc1-0 libcilkrts5 libclamav9 libconvert-binhex-perl
15536 packages 19-12-05 15:23:32 [ INFO]: libconvert-tnef-perl libconvert-uulib-perl ....
I’m not used to debian apt, but something like --auto-remove doesn’t sound goot to me.
I followed the steps decribed in https://help.univention.com/t/kopano-is-not-running-anymore/13783. Unfortunately the procedure failed:
[UCS-Kopano 2019-12-06 11:45:50 root ~]# univention-app register kopano-core --do-it && apt-get update && apt-get -s -o Debug::pkgProblemResolver=yes install kopano4ucs
Registering component for kopano-core=8.7.1.0-1
Creating data directories for kopano-core...
Registering UCR for kopano-core
Marking kopano-core=8.7.1.0-1 as installed
Adding localhost to LDAP object
Ign:2 https://appcenter.software-univention.de/univention-repository/4.4/maintained/component kopano-core_20191114105932/all/ InRelease
Ign:3 https://appcenter.software-univention.de/univention-repository/4.4/maintained/component kopano-core_20191114105932/amd64/ InRelease
Ign:4 https://updates.software-univention.de/4.0/maintained 4.0-0/all/ InRelease
Ign:5 https://appcenter.software-univention.de/univention-repository/4.3/maintained/component kopano-core_20191114105932/all/ InRelease
Ign:6 https://updates.software-univention.de/4.0/maintained 4.0-0/amd64/ InRelease
Ign:7 https://appcenter.software-univention.de/univention-repository/4.3/maintained/component kopano-core_20191114105932/amd64/ InRelease
Ign:1 https://repo.z-hub.io/z-push:/final/Univention_4.3 InRelease
Ign:8 https://updates.software-univention.de/4.0/maintained 4.0-1/all/ InRelease
Ign:9 https://download.kopano.io/supported/webapp:/final/Univention_4.3 InRelease
Ign:10 https://appcenter.software-univention.de/univention-repository/4.4/maintained/component kopano-webapp_20190426135910/all/ InRelease
Ign:12 https://updates.software-univention.de/4.0/maintained 4.0-1/amd64/ InRelease
Ign:13 https://appcenter.software-univention.de/univention-repository/4.4/maintained/component kopano-webapp_20190426135910/amd64/ InRelease
OK:11 https://repo.z-hub.io/z-push:/final/Univention_4.3 Release
Ign:14 https://updates.software-univention.de/4.0/maintained 4.0-2/all/ InRelease
Ign:15 https://appcenter.software-univention.de/univention-repository/4.4/maintained/component z-push-kopano_20190426122615/all/ InRelease
Ign:16 https://updates.software-univention.de/4.0/maintained 4.0-2/amd64/ InRelease
Ign:17 https://appcenter.software-univention.de/univention-repository/4.4/maintained/component z-push-kopano_20190426122615/amd64/ InRelease
Ign:18 https://download.kopano.io/supported/files:/final/Univention_4.3 InRelease
Ign:19 https://updates.software-univention.de/4.0/maintained 4.0-3/all/ InRelease
Ign:20 https://appcenter.software-univention.de/univention-repository/4.4/maintained/component letsencrypt_20190118130723/all/ InRelease
Ign:21 https://updates.software-univention.de/4.0/maintained 4.0-3/amd64/ InRelease
Ign:22 https://appcenter.software-univention.de/univention-repository/4.3/maintained/component letsencrypt_20190118130723/all/ InRelease
Ign:23 https://updates.software-univention.de/4.0/maintained 4.0-4/all/ InRelease
OK:24 https://appcenter.software-univention.de/univention-repository/4.4/maintained/component kopano-core_20191114105932/all/ Release
Ign:26 https://updates.software-univention.de/4.0/maintained 4.0-4/amd64/ InRelease
Ign:27 https://download.kopano.io/supported/mdm:/final/Univention_4.3 InRelease
OK:28 https://appcenter.software-univention.de/univention-repository/4.4/maintained/component kopano-core_20191114105932/amd64/ Release
Ign:29 https://updates.software-univention.de/4.0/maintained 4.0-5/all/ InRelease
OK:30 https://appcenter.software-univention.de/univention-repository/4.3/maintained/component kopano-core_20191114105932/all/ Release
Ign:31 https://updates.software-univention.de/4.0/maintained 4.0-5/amd64/ InRelease
OK:32 https://appcenter.software-univention.de/univention-repository/4.3/maintained/component kopano-core_20191114105932/amd64/ Release
Ign:33 https://updates.software-univention.de/4.1/maintained 4.1-0/all/ InRelease
OK:34 https://appcenter.software-univention.de/univention-repository/4.4/maintained/component kopano-webapp_20190426135910/all/ Release
Ign:35 https://download.kopano.io/supported/smime:/final/Univention_4.3 InRelease
Ign:36 https://updates.software-univention.de/4.1/maintained 4.1-0/amd64/ InRelease
OK:38 https://appcenter.software-univention.de/univention-repository/4.4/maintained/component kopano-webapp_20190426135910/amd64/ Release
Ign:39 https://updates.software-univention.de/4.1/maintained 4.1-1/all/ InRelease
OK:40 https://appcenter.software-univention.de/univention-repository/4.4/maintained/component z-push-kopano_20190426122615/all/ Release
Ign:41 https://updates.software-univention.de/4.1/maintained 4.1-1/amd64/ InRelease
OK:42 https://appcenter.software-univention.de/univention-repository/4.4/maintained/component z-push-kopano_20190426122615/amd64/ Release
Ign:43 https://updates.software-univention.de/4.1/maintained 4.1-2/all/ InRelease
OK:44 https://download.kopano.io/supported/webapp:/final/Univention_4.3 Release
OK:45 https://appcenter.software-univention.de/univention-repository/4.4/maintained/component letsencrypt_20190118130723/all/ Release
Ign:46 https://updates.software-univention.de/4.1/maintained 4.1-2/amd64/ InRelease
OK:47 https://appcenter.software-univention.de/univention-repository/4.3/maintained/component letsencrypt_20190118130723/all/ Release
Ign:48 https://updates.software-univention.de/4.1/maintained 4.1-3/all/ InRelease
Ign:50 https://updates.software-univention.de/4.1/maintained 4.1-3/amd64/ InRelease
Ign:51 https://updates.software-univention.de/4.1/maintained 4.1-4/all/ InRelease
OK:52 https://download.kopano.io/supported/files:/final/Univention_4.3 Release
Ign:53 https://updates.software-univention.de/4.1/maintained 4.1-4/amd64/ InRelease
Ign:54 https://updates.software-univention.de/4.1/maintained 4.1-5/all/ InRelease
Ign:56 https://updates.software-univention.de/4.1/maintained 4.1-5/amd64/ InRelease
OK:57 https://download.kopano.io/supported/mdm:/final/Univention_4.3 Release
Ign:58 https://updates.software-univention.de/4.2/maintained 4.2-0/all/ InRelease
Ign:59 https://updates.software-univention.de/4.2/maintained 4.2-0/amd64/ InRelease
Ign:60 https://updates.software-univention.de/4.2/maintained 4.2-1/all/ InRelease
Ign:61 https://updates.software-univention.de/4.2/maintained 4.2-1/amd64/ InRelease
OK:63 https://download.kopano.io/supported/smime:/final/Univention_4.3 Release
Ign:64 https://updates.software-univention.de/4.2/maintained 4.2-2/all/ InRelease
Ign:65 https://updates.software-univention.de/4.2/maintained 4.2-2/amd64/ InRelease
Ign:66 https://updates.software-univention.de/4.2/maintained 4.2-3/all/ InRelease
Ign:67 https://updates.software-univention.de/4.2/maintained 4.2-3/amd64/ InRelease
Ign:69 https://updates.software-univention.de/4.2/maintained 4.2-4/all/ InRelease
Ign:70 https://updates.software-univention.de/4.2/maintained 4.2-4/amd64/ InRelease
Ign:71 https://updates.software-univention.de/4.2/maintained 4.2-5/all/ InRelease
Ign:72 https://updates.software-univention.de/4.2/maintained 4.2-5/amd64/ InRelease
Ign:74 https://updates.software-univention.de/4.3/maintained 4.3-0/all/ InRelease
Ign:75 https://updates.software-univention.de/4.3/maintained 4.3-0/amd64/ InRelease
Ign:76 https://updates.software-univention.de/4.3/maintained 4.3-1/all/ InRelease
Ign:77 https://updates.software-univention.de/4.3/maintained 4.3-1/amd64/ InRelease
Ign:79 https://updates.software-univention.de/4.3/maintained 4.3-2/all/ InRelease
Ign:80 https://updates.software-univention.de/4.3/maintained 4.3-2/amd64/ InRelease
Ign:81 https://updates.software-univention.de/4.3/maintained 4.3-3/all/ InRelease
Ign:82 https://updates.software-univention.de/4.3/maintained 4.3-3/amd64/ InRelease
Ign:83 https://updates.software-univention.de/4.3/maintained 4.3-4/all/ InRelease
Ign:85 https://updates.software-univention.de/4.3/maintained 4.3-4/amd64/ InRelease
Ign:86 https://updates.software-univention.de/4.3/maintained 4.3-5/all/ InRelease
Ign:87 https://updates.software-univention.de/4.3/maintained 4.3-5/amd64/ InRelease
Ign:88 https://updates.software-univention.de/4.4/maintained 4.4-0/all/ InRelease
Ign:90 https://updates.software-univention.de/4.4/maintained 4.4-0/amd64/ InRelease
Ign:91 https://updates.software-univention.de/4.4/maintained 4.4-1/all/ InRelease
Ign:92 https://updates.software-univention.de/4.4/maintained 4.4-1/amd64/ InRelease
Ign:93 https://updates.software-univention.de/4.4/maintained 4.4-2/all/ InRelease
Ign:95 https://updates.software-univention.de/4.4/maintained 4.4-2/amd64/ InRelease
Ign:96 https://updates.software-univention.de/4.4/maintained/component 4.4-2-errata/all/ InRelease
Ign:97 https://updates.software-univention.de/4.4/maintained/component 4.4-2-errata/amd64/ InRelease
Ign:98 https://updates.software-univention.de/4.4/unmaintained/component cool-solutions/all/ InRelease
Ign:99 https://updates.software-univention.de/4.3/unmaintained/component cool-solutions/all/ InRelease
Ign:101 https://updates.software-univention.de/4.2/unmaintained/component cool-solutions/all/ InRelease
Ign:102 https://updates.software-univention.de/4.2/unmaintained/component cool-solutions/amd64/ InRelease
Ign:103 https://updates.software-univention.de/4.1/unmaintained/component cool-solutions/all/ InRelease
Ign:104 https://updates.software-univention.de/4.0/unmaintained/component cool-solutions/all/ InRelease
Ign:106 https://updates.software-univention.de/4.0/unmaintained/component cool-solutions/amd64/ InRelease
OK:107 https://updates.software-univention.de/4.0/maintained 4.0-0/all/ Release
OK:108 https://updates.software-univention.de/4.0/maintained 4.0-0/amd64/ Release
OK:109 https://updates.software-univention.de/4.0/maintained 4.0-1/all/ Release
OK:110 https://updates.software-univention.de/4.0/maintained 4.0-1/amd64/ Release
OK:112 https://updates.software-univention.de/4.0/maintained 4.0-2/all/ Release
OK:113 https://updates.software-univention.de/4.0/maintained 4.0-2/amd64/ Release
OK:114 https://updates.software-univention.de/4.0/maintained 4.0-3/all/ Release
OK:115 https://updates.software-univention.de/4.0/maintained 4.0-3/amd64/ Release
OK:116 https://updates.software-univention.de/4.0/maintained 4.0-4/all/ Release
OK:117 https://updates.software-univention.de/4.0/maintained 4.0-4/amd64/ Release
OK:119 https://updates.software-univention.de/4.0/maintained 4.0-5/all/ Release
OK:120 https://updates.software-univention.de/4.0/maintained 4.0-5/amd64/ Release
OK:121 https://updates.software-univention.de/4.1/maintained 4.1-0/all/ Release
OK:122 https://updates.software-univention.de/4.1/maintained 4.1-0/amd64/ Release
OK:123 https://updates.software-univention.de/4.1/maintained 4.1-1/all/ Release
OK:125 https://updates.software-univention.de/4.1/maintained 4.1-1/amd64/ Release
OK:126 https://updates.software-univention.de/4.1/maintained 4.1-2/all/ Release
OK:127 https://updates.software-univention.de/4.1/maintained 4.1-2/amd64/ Release
OK:128 https://updates.software-univention.de/4.1/maintained 4.1-3/all/ Release
OK:130 https://updates.software-univention.de/4.1/maintained 4.1-3/amd64/ Release
OK:131 https://updates.software-univention.de/4.1/maintained 4.1-4/all/ Release
OK:132 https://updates.software-univention.de/4.1/maintained 4.1-4/amd64/ Release
OK:133 https://updates.software-univention.de/4.1/maintained 4.1-5/all/ Release
OK:135 https://updates.software-univention.de/4.1/maintained 4.1-5/amd64/ Release
OK:136 https://updates.software-univention.de/4.2/maintained 4.2-0/all/ Release
OK:137 https://updates.software-univention.de/4.2/maintained 4.2-0/amd64/ Release
OK:138 https://updates.software-univention.de/4.2/maintained 4.2-1/all/ Release
OK:139 https://updates.software-univention.de/4.2/maintained 4.2-1/amd64/ Release
OK:141 https://updates.software-univention.de/4.2/maintained 4.2-2/all/ Release
OK:142 https://updates.software-univention.de/4.2/maintained 4.2-2/amd64/ Release
OK:143 https://updates.software-univention.de/4.2/maintained 4.2-3/all/ Release
OK:144 https://updates.software-univention.de/4.2/maintained 4.2-3/amd64/ Release
OK:146 https://updates.software-univention.de/4.2/maintained 4.2-4/all/ Release
OK:147 https://updates.software-univention.de/4.2/maintained 4.2-4/amd64/ Release
OK:148 https://updates.software-univention.de/4.2/maintained 4.2-5/all/ Release
OK:149 https://updates.software-univention.de/4.2/maintained 4.2-5/amd64/ Release
OK:150 https://updates.software-univention.de/4.3/maintained 4.3-0/all/ Release
OK:152 https://updates.software-univention.de/4.3/maintained 4.3-0/amd64/ Release
OK:153 https://updates.software-univention.de/4.3/maintained 4.3-1/all/ Release
OK:155 https://updates.software-univention.de/4.3/maintained 4.3-1/amd64/ Release
OK:156 https://updates.software-univention.de/4.3/maintained 4.3-2/all/ Release
OK:157 https://updates.software-univention.de/4.3/maintained 4.3-2/amd64/ Release
OK:158 https://updates.software-univention.de/4.3/maintained 4.3-3/all/ Release
OK:160 https://updates.software-univention.de/4.3/maintained 4.3-3/amd64/ Release
OK:161 https://updates.software-univention.de/4.3/maintained 4.3-4/all/ Release
OK:162 https://updates.software-univention.de/4.3/maintained 4.3-4/amd64/ Release
OK:163 https://updates.software-univention.de/4.3/maintained 4.3-5/all/ Release
OK:165 https://updates.software-univention.de/4.3/maintained 4.3-5/amd64/ Release
OK:166 https://updates.software-univention.de/4.4/maintained 4.4-0/all/ Release
OK:167 https://updates.software-univention.de/4.4/maintained 4.4-0/amd64/ Release
OK:168 https://updates.software-univention.de/4.4/maintained 4.4-1/all/ Release
OK:170 https://updates.software-univention.de/4.4/maintained 4.4-1/amd64/ Release
OK:171 https://updates.software-univention.de/4.4/maintained 4.4-2/all/ Release
OK:172 https://updates.software-univention.de/4.4/maintained 4.4-2/amd64/ Release
OK:173 https://updates.software-univention.de/4.4/maintained/component 4.4-2-errata/all/ Release
OK:175 https://updates.software-univention.de/4.4/maintained/component 4.4-2-errata/amd64/ Release
Holen:176 https://updates.software-univention.de/4.4/unmaintained/component cool-solutions/all/ Release [939 B]
OK:177 https://updates.software-univention.de/4.3/unmaintained/component cool-solutions/all/ Release
OK:178 https://updates.software-univention.de/4.2/unmaintained/component cool-solutions/all/ Release
OK:180 https://updates.software-univention.de/4.2/unmaintained/component cool-solutions/amd64/ Release
OK:181 https://updates.software-univention.de/4.1/unmaintained/component cool-solutions/all/ Release
OK:182 https://updates.software-univention.de/4.0/unmaintained/component cool-solutions/all/ Release
OK:183 https://updates.software-univention.de/4.0/unmaintained/component cool-solutions/amd64/ Release
Holen:184 https://updates.software-univention.de/4.4/unmaintained/component cool-solutions/all/ Release.gpg [801 B]
Holen:235 https://updates.software-univention.de/4.4/unmaintained/component cool-solutions/all/ Packages [4.274 B]
Es wurden 6.014 B in 8 s geholt (704 B/s).
Paketlisten werden gelesen... Fertig
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Starting pkgProblemResolver with broken count: 3
Starting 2 pkgProblemResolver with broken count: 3
Investigating (0) kopano-search:amd64 < none -> 8.7.1.0-0+9.1 @rc uN Ib >
Broken kopano-search:amd64 Hängt ab von on python3-kopano-search:amd64 < none | 8.7.1.0-0+9.1 @un uH > (= 8.7.1.0-0+9.1)
Considering python3-kopano-search:amd64 0 as a solution to kopano-search:amd64 0
Holding Back kopano-search:amd64 rather than change python3-kopano-search:amd64
Broken kopano-search:amd64 Hängt ab von on python-kopano-search:amd64 < none | 8.7.1.0-0+9.1 @un uH > (= 8.7.1.0-0+9.1)
Considering python-kopano-search:amd64 0 as a solution to kopano-search:amd64 0
Holding Back kopano-search:amd64 rather than change python-kopano-search:amd64
Or group keep for kopano-search:amd64
Investigating (0) kopano-server:amd64 < none -> 8.7.1.0-0+9.1 @rc uN Ib >
Broken kopano-server:amd64 Hängt ab von on kopano-utils:amd64 < none | 8.7.1.0-0+9.1 @un uH >
Considering kopano-utils:amd64 0 as a solution to kopano-server:amd64 0
Holding Back kopano-server:amd64 rather than change kopano-utils:amd64
Investigating (0) kopano-server-packages:amd64 < none -> 8.7.1.0-0+9.1 @un uN Ib >
Broken kopano-server-packages:amd64 Hängt ab von on kopano-dagent:amd64 < none | 8.7.1.0-0+9.1 @rc uH > (= 8.7.1.0-0+9.1)
Considering kopano-dagent:amd64 0 as a solution to kopano-server-packages:amd64 0
Holding Back kopano-server-packages:amd64 rather than change kopano-dagent:amd64
Investigating (1) kopano4ucs:amd64 < none -> 1.6.2 @rc puN Ib >
Broken kopano4ucs:amd64 Hängt ab von on kopano-server-packages:amd64 < none | 8.7.1.0-0+9.1 @un uH >
Considering kopano-server-packages:amd64 0 as a solution to kopano4ucs:amd64 9999
Re-Instated libkcarchivercore0:amd64
Reinst Failed early because of kopano-client:amd64
Reinst Failed because of kopano-dagent:amd64
Done
Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass
Sie eine unmögliche Situation angefordert haben oder, wenn Sie die
Unstable-Distribution verwenden, dass einige erforderliche Pakete noch
nicht erstellt wurden oder Incoming noch nicht verlassen haben.
Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu lösen:
Die folgenden Pakete haben unerfüllte Abhängigkeiten:
kopano4ucs : Hängt ab von: kopano-server-packages soll aber nicht installiert werden
E: Probleme können nicht korrigiert werden, Sie haben zurückgehaltene defekte Pakete.
After spending the whole night I feel kind of desperate, not to mention the mood my customer is in