Univention Bugzilla – Bug 53380
Package based apps: always register component
Last modified: 2021-06-02 12:26:05 CEST
During the installation of package based apps the online component is registered. But if that fails, the appcenter does not repeat the registration on subsequent installations and an error in the sources list is not corrected. e.g. -> univention-app install z-push-kopanoRegistering component for z-push-kopano=2.6.2-1 File: /etc/apt/sources.list.d/20_ucs-online-component.list Module: kopano-cfg File: /etc/apt/mirror.list File: /etc/apt/sources.list.d/15_ucs-online-version.list Ign:1 http://updates.software-univention.de/4.0/maintained 4.0-0/all/ InRelease ... E: Paket kopano4ucs-z-push kann nicht gefunden werden. Failed to install the App Aborting... -> cat /etc/apt/sources.list.d/20_ucs-online-component.list ... # Configuration error: Network is unreachable: z-push-kopano_20210526115951 so the installation failed, probably a temporary network problem. But the component is now already registered and we have a "broken" sources list. The next install attempt also fail, because the whole registration/apt-get process is now omitted by the appcenter -> univention-app install z-push-kopano Going to install Z-Push for Kopano (2.6.2-1) Creating data directories for z-push-kopano... Registering UCR for z-push-kopano Marking z-push-kopano=2.6.2-1 as installed Adding localhost to LDAP object Reloading apache2 configuration (via systemctl): apache2.service. Registering component for z-push-kopano=2.6.2-1 Paketlisten werden gelesen... Abhängigkeitsbaum wird aufgebaut.... Statusinformationen werden eingelesen.... E: Paket kopano4ucs-z-push kann nicht gefunden werden. Failed to install the App Aborting... The app status is "not installed", so now i can neither remove or install the app, unless -> ucr commit /etc/apt/sources.list.d/20_ucs-online-component.list -> apt-get update At least these last two step should be done by the appcenter on every installation, regardless of the status of the component registration.