Problem: When upgrading from command line you get a traceback
You used the following command line to update:
root@backup:~# univention-upgrade --ignoreterm --ignoressh --updateto=4.4.0
Environment
You will get an error like this:
root@backup:~# univention-upgrade --ignoreterm --ignoressh --updateto=4.3.0
Starting univention-upgrade. Current UCS version is 4.2-5 errata0
Checking for local repository: none
Checking for package updates: none
Checking for app updates: none
Checking for release updates: An error occurred - see "/var/log/univention/updater.log" for details
In /var/log/univention/updater.log you will see:
Starting univention-upgrade. Current UCS version is 4.2-5 errata0
Checking for local repository: none
Checking for package updates: none
Checking for app updates: none
Checking for release updates: Traceback in univention-upgrade:
Traceback (most recent call last):
File "/usr/sbin/univention-upgrade", line 437, in do_update
update_available = performUpdate(options, checkForUpdates=options.check, silent=False)
File "/usr/sbin/univention-upgrade", line 138, in performUpdate
if func(options, checkForUpdates, silent):
File "/usr/sbin/univention-upgrade", line 154, in do_release_update
if options.updateto and UCS_Version(options.updateto) < UCS_Version(version_next):
File "/usr/lib/pymodules/python2.7/univention/updater/ucs_version.py", line 61, in __init__
self.set(version)
File "/usr/lib/pymodules/python2.7/univention/updater/ucs_version.py", line 94, in set
raise ValueError('string does not match UCS version pattern')
ValueError: string does not match UCS version pattern
Solution
Uee the correct version string in your command. Replace “4.4.0” by “4.4-0” and start the upgrade again:
root@backup:~# univention-upgrade --ignoreterm --ignoressh --updateto=4.4-0