Bug 52833 - univention-updater: univention-list-installed-unmaintained-packages does not consider maintained packages from other sources
univention-updater: univention-list-installed-unmaintained-packages does not ...
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Update - univention-updater
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0
Assigned To: Felix Botner
UCS maintainers
: interim-3
Depends on:
Blocks: 56157
  Show dependency treegraph
 
Reported: 2021-02-23 10:18 CET by Christian Castens
Modified: 2023-06-19 14:56 CEST (History)
7 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 Christian Castens univentionstaff 2021-02-23 10:18:40 CET
To determine whether unmaintained packages are installed on a system, the tool "univention-list-unmaintained-installed-packages" currently only uses univention-maintained-packages.txt that can be found in the univention-errata-level module and checks that against all installed packages.

It does not consider some special cases where maintained packages from other sources that are not on that list are falsly treated as if they were unmaintained.
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2021-02-23 12:14:34 CET
Would it be possible to consider only packages that have an installation candidate on one of our repository server? 
==> exclude packages from appcenter.software-univention.de from the check
Comment 4 Felix Botner univentionstaff 2021-02-23 12:46:44 CET
(In reply to Sönke Schwardt-Krummrich from comment #2)
> Would it be possible to consider only packages that have an installation
> candidate on one of our repository server? 
> ==> exclude packages from appcenter.software-univention.de from the check

yes, another idea would be to check the package was installed from a "maintained" repository, e.g.

apt-cache policy univention-node-exporter
univention-node-exporter:
  Installiert:           0.0.0-13
  Installationskandidat: 0.0.0-13
  Versionstabelle:
 *** 0.0.0-13 500
        500 https://appcenter.software-univention.de/univention-repository/4.4/maintained/component prometheus-node-exporter_20181119120420/all/ Packages
        500 https://appcenter.software-univention.de/univention-repository/4.3/maintained/component prometheus-node-exporter_20181119120420/all/ Packages
        100 /var/lib/dpkg/status

This package is from a maintained component and the script could check this to determine the maintained/unmaintained status
Comment 5 Felix Botner univentionstaff 2021-04-23 13:47:43 CEST
e9867b1c40a1214834c89d4d910cd8d31972953a - univention-updater
treat packages from */maintained/component* as maintained
Comment 6 Max Pohle univentionstaff 2021-05-10 17:19:19 CEST
The script produces predictable results, even if they are not completely consistent with my initial expectations towards it. During my investigation I have gone through parts of the development history of the script, which I believe are necessary to know about, when doing further development on it and this will be required, because there are some decisions still pending in regards to the implementation of our app center. This however is off-topic here and I have created another ticket to deal with it. I tried to summarize the state as good as possible in Bug #53241.
Comment 7 Florian Best univentionstaff 2021-05-25 16:02:51 CEST
UCS 5.0 has been released:
 https://docs.software-univention.de/release-notes-5.0-0-en.html
 https://docs.software-univention.de/release-notes-5.0-0-de.html

If this error occurs again, please use "Clone This Bug".