Univention Bugzilla – Bug 52483
preup.sh - add check for role packages before apt-get autoremove
Last modified: 2021-04-28 10:24:03 CEST
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.