Univention Bugzilla – Bug 48029
Don't change local host's repository if univention-repository-create hasn't finished successfully
Last modified: 2021-05-14 16:34:14 CEST
Not sure if I chose the right component, feel free to move! If univention-repository-create is started and stops before it's finished setting up the repo, it breaks apt-get at least in some cases (e.g. user forgets to insert CD) by changing the local host's repo server too early. To reproduce: - Don't insert UCS DVD - Execute univention-repository-create - Press Enter when it asks if a CD was inserted, even though it wasn't - univention-repository-create exits - repository/online/server is already changed and apt-get update is broken I think univention-repository-create shouldn't change repository/online/server unless it has finished without errors. Finished unsuccessfully: ----- Please insert a UCS installation medium and press <Enter> Mounting /media/cdrom ... done. Checking medium in /media/cdrom ... failed. Error: This is not an UCS installation medium. Error: Failed to mount CD-ROM device at /media/cdrom root@master:~# grep 'repository/online/server' /var/log/univention/config-registry.replog 2018-10-19 18:09:41: set repository/online/server=master.ucs.demo old:https://updates.software-univention.de/ ----- It only puts out information about having changed the local host to use the local repository if it finished successfully: ----- The local repository has been created. The local host has been modified to use this local repository. Other hosts must be re-configured by setting the Univention Configuration Registry (UCR) variable 'repository/online/server' to the FQDN of this host. ucr set repository/online/server="master.ucs.demo" -----
This issue has been filed against UCS 4.3. UCS 4.3 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.