Univention Bugzilla – Bug 50906
Add flag to skip local repo update if noninteractive is set
Last modified: 2020-03-09 13:11:20 CET
On an UCS with a repo mirror univention-upgrade performs an update of this error first thing when it's called. With --noninteractive this starts automatically. It would help to have a flag for skipping the local repo update even if --noninteractive is set. The reasoning behind this is that repo mirror updates can take a long time (up to 5h at one of my customers). Because of this they basically can't update their UCS with the repo mirror on it with --noninteractive, because univention-upgrade would always "hang" for hours because of the unskippable repo mirror update.
If a server is a local repository, it automatically re-configures itself to use itself as its update server: repository/online/server=localhost So for updates to happen AUTOMATICALLY (e.g. "nonintractive") the local repository MUST be updates before there are any new packages to install. Updating an "up-to-date" repository should not take ages, so maybe something with you network is broken? Hint: By default `univention-repository-update` uses `apt-mirror` to mirror all previous minor and patch-level and errata repositories. If you know that all your systems are up-to-date you can disable mirroring previous errata repositories by setting `repository/online/component/4.$MINOR-$PATCH-errata/localmirror=no`. This can speed up the mirroring process slightly. Be warned to NOT disable previous minor-releases as UCS-4.4 technically depends on UCS-4.3, 4.2, 4.1 and 4.0 and still required packages from those repositories. Reducing the number of HTTP requests is planned for the future, but no ETA. So adding such an option might help for this special situation. (As a temporary work-around use `DEBIAN_FRONTEND=noninteractive apt-get` directly; see `ucr search ^update/commands/` for additional arguments).