Univention Bugzilla – Bug 49518
update on repository server failed
Last modified: 2019-05-28 10:49:24 CEST
A customer reported, that an update failed on his repository server, with the following traceback. Starting dist-update at Tue May 21 08:10:33 2019... Starting package upgrade Traceback in univention-upgrade: Traceback (most recent call last): File "/usr/sbin/univention-upgrade", line 441, in do_update update_available = performUpdate(options, checkForUpdates=options.check, silent=False) File "/usr/sbin/univention-upgrade", line 139, in performUpdate if func(options, checkForUpdates, silent): File "/usr/sbin/univention-upgrade", line 221, in do_package_updates os.environ['ADMINDIARY_CONTEXT'] = context_id File "/usr/lib/python2.7/os.py", line 473, in __setitem__ putenv(key, item) TypeError: putenv() argument 2 must be string, not None The used command was the following: ucr set local/repository=no && univention-upgrade --noninteractive --ignoressh && ucr set local/repository=yes Do you need more information?
Already fixed in Bug #49056. *** This bug has been marked as a duplicate of bug 49056 ***
Workaround (untested): sed -i "s#os.environ['ADMINDIARY_CONTEXT'] = context_id#os.environ['ADMINDIARY_CONTEXT'] = str(context_id)#g" /usr/sbin/univention-upgrade /usr/sbin/univention-updater
Workaround worked: sed -i "s/os.environ\['ADMINDIARY_CONTEXT'\] = context_id/os.environ\['ADMINDIARY_CONTEXT'\] = str(context_id)/g" /usr/sbin/univention-upgrade