Problem
After updating the system, some OX apps cannot be upgraded. The following error messages appear in the /var/log/univention/appcenter.log
:
6601 actions.upgrade 24-12-16 15:34:41 [CRITICAL]: A newer version of oxseforucs than the one installed must be present and chosen.
6607 actions.upgrade 24-12-16 15:34:51 [CRITICAL]: (must_have_candidate) The application is either not installed or no newer version is available
6607 actions.upgrade 24-12-16 15:34:51 [CRITICAL]: Unable to upgrade. Aborting...
Investigation
Upon further analysis, it was discovered that certain UCR variables define repositories that do not exist. The configured repositories via UCR are:
root@ox4ucs:~# ucr search --brief ^repository/online/component/ox | grep enabled
repository/online/component/oxdocconv7106: enabled
repository/online/component/oxdocconvapi7106: enabled
repository/online/component/oxdrive7106: enabled
repository/online/component/oxdrivehelp250: enabled
repository/online/component/oxguard2104: enabled
repository/online/component/oxguard2107: enabled
repository/online/component/oxmobility7106: enabled
repository/online/component/oxoffice7104: enabled
repository/online/component/oxoffice7106: enabled
repository/online/component/oxofficeweb7106: enabled
repository/online/component/oxpdftool7106: enabled
repository/online/component/oxreaderengine7106: enabled
repository/online/component/oxseforucs_20231106074516: enabled
repository/online/component/oxucs7106: enabled
repository/online/component/oxusm7106: enabled
Specifically, the repositories repository/online/component/oxoffice7104
and repository/online/component/oxguard2104
point to directories that are not available online under the paths specified in repository/online/component/oxguard2104/server
and repository/online/component/oxoffice7104/server
.
Solution
-
Create a System Clone:
- Before making any changes to the main system, create a clone to ensure safety and test the proposed solution.
-
Disable Non-Existent Repositories:
- Set
repository/online/component/oxguard2104
andrepository/online/component/oxoffice7104
todisabled
in UCR. - This will prevent conflicts caused by duplicate repositories and package sources.
- Set
-
Retry the Update Process:
- Run the update process again on the cloned system to verify if disabling the non-existent repositories resolves the issue.