Univention Bugzilla – Bug 48144
Progress/verbose output for univention-repository-update net
Last modified: 2021-01-25 05:41:53 CET
univention-repository-update net can take a long time (even several hours) depending on the network bandwidth, especially when it's executed for the first time. Most of that time apt-mirror is just busy downloading files. Atm univention-repository-update net does not output any indicator of progress and finishes silently. It would be nice to at least have the output that's currently written to /var/log/univention/repository.log as an indicator of progress written to stdout as well. Hiding it behind a --verbose or --progress switch would be fine by me
"univention-repository-update" uses "apt-mirror" internally, which does not have a good progress report, so u-r-u cannot pass any information through. But you can invoke "apt-mirror" directly by hand to get at least that minimal progress report. A better option is to tail -f /var/lib/univention-repository/var/archive-log.? Even better is "multitail" to monitor those 10 files in parallel; if your terminal supports that. The files in that directory have the following meaning: "ALL" contains the URLs of all Debian packages. "NEW" contains the subset of URLs missing in the archive, which need to be downloaded. That list is split into X equal parts names "archive-urls.?" Then X "wget" processes are forked to download those URLS; they log to "archive-log.?" If none of these X files show any progress, the download is finished. There also exists the "index-urls.?" and "index-log.?" files, which are used to download the "Packages" and "Sources" files respectively. That happens before the packages are downloaded themselves.
*** This bug has been marked as a duplicate of bug 46444 ***