Univention Bugzilla – Bug 37678
More checks and cleanups in preup to improve the update stability
Last modified: 2021-11-11 11:04:55 CET
We should discuss/add more checks and cleanups the preup script to improve the update stability, here some thoughts * apt-mark unmarkauto all univention packages? * apt-get autoremove to get rid of unnecessary packages? * check apt-get sources (if update/secure_apt='yes' are there any unsigned repos, ...)? * prevent update with unmaintained? * deborphan to get rid of old libs * mark all installed apps/components as installed and check if they are still installed after the update * check the output of apt-get -s -o Debug::pkgProblemResolver=yes dist-upgrade and abort the update if for example univention-server is deinstalled Most important in my opinion is to remove old software. The reason for most of the failed update test was an old (already unmaintained) software package (old transitional packages, old libs from UCS < 2.0, ...).
* check for all installed packages that to latest version in the new UCS release is higher than the local version (if the packages exists in the new UCS version). Background: If we update firefox for 3.2, this version is higher than in 4.0-0. This breaks the update and we have to adjust the preup to preupdate firefox.
(In reply to Felix Botner from comment #0) > * apt-get autoremove to get rid of unnecessary packages? > > * deborphan to get rid of old libs I think e should rather have a static list of known-obsolete packages/lists which we remove during updates, e.g. old UCS standard libs, transitional package names or deprecated/removed UCS packages.
This issue has been filled against UCS 4.0. The maintenance with bug and security fixes for UCS 4.0 has ended on 31st of May 2016. Customers still on UCS 4.0 are encouraged to update to UCS 4.3. Please contact your partner or Univention for any questions. If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you.