Univention Bugzilla – Bug 39413
Copy update/secure_apt from host system
Last modified: 2015-11-17 12:11:53 CET
While setting up a docker app, the UCR setting for update/secure_apt should be copied from the host system into the container.
Fixed with r64011
It was already in the list of UCR variables but it doesn't work. The file /etc/apt/apt.conf.d/20secureapt is not commited.
I patched ucr locally to not swallow up the tracback. Got this: root@owncloud8-docker-1443365390224938:/# ucr set nameserver2=192.168.0.3 Setting nameserver2 File: /etc/resolv.conf Traceback (most recent call last): File "/usr/sbin/ucr", line 65, in <module> ub.main(convertToUtf8(sys.argv[1:])) File "/usr/lib/pymodules/python2.7/univention/config_registry/frontend.py", line 690, in main handler_func(args, cmd_opts) File "/usr/lib/pymodules/python2.7/univention/config_registry/frontend.py", line 162, in handler_set None if quiet else 'W: %s is overridden by scope "%s"') File "/usr/lib/pymodules/python2.7/univention/config_registry/frontend.py", line 203, in _run_changed handlers(changed.keys(), (ucr, changed)) File "/usr/lib/pymodules/python2.7/univention/config_registry/handler.py", line 830, in __call__ handler(arg) File "/usr/lib/pymodules/python2.7/univention/config_registry/handler.py", line 418, in __call__ os.rename(tmp_to_file, self.to_file) OSError: [Errno 16] Device or resource busy I guess that apt/secure_apt ist not set because gets updates after nameserver2, but at that point the whole program exits.
It looks like the latest UCR fixes haven't been built: Bug #38011.
(In reply to Stefan Gohmann from comment #4) > It looks like the latest UCR fixes haven't been built: Bug #38011. Yes, that was the problem. I've removed the bug number from the changelog entry since the variable was already set previously.
OK
UCS 4.1 has been released: https://docs.software-univention.de/release-notes-4.1-0-en.html https://docs.software-univention.de/release-notes-4.1-0-de.html If this error occurs again, please use "Clone This Bug".