Univention Bugzilla – Bug 36229
univention-samba-local-config update failed
Last modified: 2014-11-26 06:55:19 CET
Seen in the Jenkins test: http://jenkins.knut.univention.de:8080/job/UCS-4.0/job/UCS-4.0-0/job/UCS 3.2 to 4.0 Autotest MultiEnv/SambaVersion=s4,Systemrolle=master/ -------------------------------------------------------------------------------- Preparing to replace univention-samba-local-config 8.0.19-11.477.201408081022 (using .../univention-samba-local-config_9.0.2-1.486.201410182052_all.deb) ... /var/lib/dpkg/info/univention-samba-local-config.prerm: 6: update-python-modules: not found dpkg: warning: subprocess old pre-removal script returned error exit status 127 dpkg - trying script from the new package instead ... /var/lib/dpkg/tmp.ci/prerm: 6: update-python-modules: not found dpkg: error processing /var/cache/apt/archives/univention-samba-local-config_9.0.2-1.486.201410182052_all.deb (--unpack): subprocess new pre-removal script returned error exit status 127 configured to not write apport reports /var/lib/dpkg/info/univention-samba-local-config.postinst: 36: update-python-modules: not found /var/lib/dpkg/info/univention-samba-local-config.postinst: 42: univention-config-registry: not found Preparing to replace univention-samba4 3.0.39-35.591.201408281245 (using .../univention-samba4_4.0.0-6.593.201408281504_amd64.deb) ... /var/lib/dpkg/info/univention-samba4.prerm: 47: univention-config-registry: not found /var/lib/dpkg/info/univention-samba4.prerm: 52: update-python-modules: not found Unpacking replacement univention-samba4 ... Processing triggers for man-db ... Errors were encountered while processing: /var/cache/apt/archives/univention-samba-local-config_9.0.2-1.486.201410182052_all.deb Traceback (most recent call last): File "/usr/sbin/univention-pkgdb-scan", line 34, in <module> import univention.pkgdb File "/usr/lib/pymodules/python2.6/univention/pkgdb.py", line 35, in <module> import apt_pkg ImportError: libapt-pkg.so.4.12: cannot open shared object file: No such file or directory --------------------------------------------------------------------------------
I've added univention-config to the pre update package list: r54623
(In reply to Stefan Gohmann from comment #1) > I've added univention-config to the pre update package list: r54623 Changelog: r54625
UCR templates are unusable after the preupdate (without the actual update!) ucr set update/secure_apt='no' Setting update/secure_apt File: /etc/apt/apt.conf.d/20secureapt Traceback (most recent call last): File "<stdin>", line 2, in <module> ImportError: No module named univention.config_registry -> file /usr/lib/pymodules/python2.6/univention/config_registry/__init__.py /usr/lib/pymodules/python2.6/univention/config_registry/__init__.py: symbolic link to `/usr/share/pyshared/univention/config_registry/__init__.py' -> file /usr/lib/pymodules/python2.7 /usr/lib/pymodules/python2.7: ERROR: cannot open `/usr/lib/pymodules/python2.7' (No such file or directory) -> dpkg -l python2.7 Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Description +++-=================================-=================================-================================================================================== ii python2.7 2.7.3-6.5.201406301216 Interactive high-level object-oriented language (version 2.7) -> dpkg -l python-univention-config-registry Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Description +++-=================================-=================================-================================================================================== ii python-univention-config-registry 10.0.1-6.476.201409011607 UCS - Python interface to configuration registry
OK, we also need python-univention and I've added python2.7 temporarily to the supported python version: r54753 + r54751 + r54775
Ok, the update works, changelog ok.
UCS 4.0-0 has been released: http://docs.univention.de/release-notes-4.0-0-en.html http://docs.univention.de/release-notes-4.0-0-de.html If this error occurs again, please use "Clone This Bug".