Bug 52483 - preup.sh - add check for role packages before apt-get autoremove
preup.sh - add check for role packages before apt-get autoremove
Status: NEW
Product: UCS
Classification: Unclassified
Component: Update - univention-updater
UCS 4.4
Other Linux
: P5 normal (vote)
: UCS 5.0-0-errata
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-12-11 13:13 CET by Felix Botner
Modified: 2021-04-28 10:24 CEST (History)
3 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 2: Improvement: Would be a product improvement
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.023
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 2020-12-11 13:13:58 CET
Support case.

The customer removed the role package, I know he shouldn't do that, but the next ucs update made the situation much worse.

So after removing the role package univention-upgrade was started. During the update (preup.sh) we apt-get autoremove "unnecessary" package. Unfortunately in this situation (without a role package) a lot of univention packages deemed to be unnecessary, including the univention-updater.

After that broken update we end up with a system without univention-upgade, without apt-get package lists etc.

Solution(?)

We could simply check in the preup.sh if the correct role package is installed (before we start the autoremove) and abort the update with an appropriate error message.