Bug 37678 - More checks and cleanups in preup to improve the update stability
More checks and cleanups in preup to improve the update stability
Status: REOPENED
Product: UCS
Classification: Unclassified
Component: Update - Release updates
UCS 5.0
Other Linux
: P5 normal with 1 vote (vote)
: UCS 4.0-x
Assigned To: UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-02-03 12:27 CET by Felix Botner
Modified: 2021-11-11 11:04 CET (History)
3 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2015-02-03 12:27:27 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, ...).
Comment 1 Felix Botner univentionstaff 2015-02-03 12:42:24 CET
 * 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.
Comment 2 Moritz Muehlenhoff univentionstaff 2015-02-05 12:23:34 CET
(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.
Comment 3 Stefan Gohmann univentionstaff 2019-01-03 07:17:58 CET
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.