Univention Bugzilla – Bug 54246
"univention-repository-create" does not create "ucs-releases.json"
Last modified: 2022-12-16 12:18:13 CET
Scenario: I have two local repository servers, one for UCS 4.x and one for UCS 5.x, as recommended in https://docs.software-univention.de/release-notes-5.0-0-en.html#relnotes:localrepo I then want to upgrade my first UCS system from 4.4-8 to 5.0-0. After switching the Repo-Server via repository/online/server, univention-upgrade does not offer to upgrade to UCS 5.0: > root@ucs001:~# univention-upgrade > > Starting univention-upgrade. Current UCS version is 4.4-8 errata1123 > > Checking for local repository: none > Checking for package updates: none > Checking for app updates: none > Checking for release updates: none > root@ucs001:~# I can see that the files underneath /etc/apt/sources.list.d/* are empty. On the Repo-Server itself (which is already 5.0 and uses its local repo for its own updates by default), I can find some tracebacks in /etc/apt/sources.list.d/15_ucs-online-version.list, e.g.: # Traceback (most recent call last): # File "/usr/lib/python3/dist-packages/univention/updater/tools.py", line 1319, in _get_releases # _code, _size, data = self.server.access(None, 'ucs-releases.json', get=True) # File "/usr/lib/python3/dist-packages/univention/updater/tools.py", line 727, in access # raise DownloadError(uri, res.code) # univention.updater.errors.DownloadError: Error downloading http://ucs123.repo.example.org/univention-repository/ucs-releases.json: 404 ucs123 is my UCS-5.x-Repo-Server. And indeed, there is no "ucs-releases.json": > root@ucs123:~# ls -la /var/lib/univention-repository/mirror/ > insgesamt 20 > drwxr-xr-x 5 root root 4096 Dez 10 14:37 . > drwxr-xr-x 5 root root 4096 Dez 10 14:37 .. > drwxr-xr-x 3 root root 4096 Dez 10 14:37 apt > drwxr-xr-x 4 root root 4096 Dez 10 22:21 dists > drwxr-xr-x 3 root root 4096 Dez 10 14:37 pool > lrwxrwxrwx 1 root root 1 Dez 10 14:37 univention-repository -> . Workaround (on the 5.x-Repo-Server): > wget https://update.software-univention.de/ucs-releases.json -O /var/lib/univention-repository/mirror/ucs-releases.json This seems to do the trick: > root@ucs001:~# univention-upgrade > > Starting univention-upgrade. Current UCS version is 4.4-8 errata1123 > > Checking for local repository: none > Checking for package updates: none > Checking for app updates: none > Checking for release updates: found: UCS 5.0-0 > Do you want to update to 5.0-0 [Y|n]?