Upgrade an Unmaintained Version of Univention Corporate Server

Problem

You’re using an outdated version of Univention Corporate Server. The version you use is not maintained anymore. A simple try to update your instance will lead to errors like this:

**** Downloading scripts at Thu Sep 15 20:11:47 2022
Error: Update aborted due to verification error:
Verification error: Invalid signature: gpgv: Unterschrift vom Mo 28 Jun 2021 15:16:43 CEST mittels RSA-Schlüssel ID A055F562
gpgv: Unterschrift kann nicht geprüft werden: Öffentlicher Schlüssel nicht gefunden

This can and should only be disabled temporarily using the UCR
variable 'repository/online/verify'.

It will tell you that the unmainted repos cannot be verified anymore. But you might see more errors along the road.

Solution

There are a few obstacles to handle. Here are those that made me go nuts…

Disable Repository verification

As the error message above suggests, simply disable the verification of the repos. In UCR search for repository/online/verify and set it to false.

UCR variable 'repository/online/verify' set to false

Handling authentication errors

Goin on you will see an error like this:

# German version:
E: Es gab Probleme und -y wurde ohne --force-yes verwendet.
# English version:
E: There are problems and -y was used without --force-yes

For a few updates it was sufficient for me to add the option --allow-unauthenticated to all the apt-get command templates like shown in the following image:

set option to allow unauthenticated apt-get operations

But for some reason one update still did not work. So I also edited the UCR variable update/secure_apt and set it to no. That might also be an substitution for the –-allow-unauthenticated option above. I cannot verify it anymore so I let you with both options to try out.

update/secure_apt variable set to no

Specific when upgrading to 4.3-1

I encountered an error that was specific to the upgrade to version 4.3-1:

Error: Failed to execute "apt-get update"

See https://help.univention.com/t/update-to-4-3-1-error-failed-to-execute-apt-get-update/9021/3 for more information as there are multiple possible solutions.

Software version used

UCS: 4.2-4

Leave a Comment