Univention Bugzilla – Bug 41598
ImportError: /usr/lib/x86_64-linux-gnu/libndr-nbt.so.0: invalid ELF header
Last modified: 2019-01-03 07:22:40 CET
Version: 4.1-2 errata202 (Vahr) Failed to load module setup: /usr/lib/x86_64-linux-gnu/libndr-nbt.so.0: invalid ELF header Traceback (most recent call last): File "%PY2.7%/univention/management/console/protocol/modserver.py", line 100, in _load_module self.__module = __import__(file_, [], [], modname) File "%PY2.7%/univention/management/console/modules/setup/__init__.py", line 56, in <module> from univention.lib.admember import lookup_adds_dc, connectionFailed, failedADConnect File "%PY2.7%/univention/lib/admember.py", line 44, in <module> from samba.dcerpc import nbt, security File "/usr/lib/python2.7/dist-packages/samba/__init__.py", line 51, in <module> from samba._ldb import Ldb as _Ldb ImportError: /usr/lib/x86_64-linux-gnu/libndr-nbt.so.0: invalid ELF header It is not possible to import samba.dcerpc and therefore not possible to import univention.lib.admember and therefore not possible to load any system-setup module. Setting to component Samba4 and severity to critical (IMHO).
The following scripts are affected: services/univention-samba/server_password_change.d/univention-samba management/univention-management-console-module-adtakeover/umc/python/adtakeover/takeover.py base/univention-system-setup/umc/python/setup/__init__.py base/univention-system-setup/umc/python/setup/util.p
Created attachment 7751 [details] patch Maybe this patch? Raising RuntimeError when the functionality is actually used instead of at import time. This might have side effects.
"libndr-nbt.so.0: invalid ELF header" -- The file is present but unusable? Disc full? Invalid arch? Or is it a missing package dependency (see Bug #37333)?
I guess we need more information. Has it been reported only once?
(In reply to Stefan Gohmann from comment #4) > I guess we need more information. Has it been reported only once? Yes, only once.
Reported again: Version: 4.2-3 errata52 (Lesum) Remark: Direkt nach neuinstallation Failed to load module setup: /usr/lib/x86_64-linux-gnu/samba/libmsghdr.so.0: invalid ELF header Traceback (most recent call last): File "%PY2.7%/univention/management/console/protocol/modserver.py", line 101, in _load_module self.__module = __import__(file_, [], [], modname) File "%PY2.7%/univention/management/console/modules/setup/__init__.py", line 57, in <module> from univention.lib.admember import lookup_adds_dc, connectionFailed, failedADConnect File "%PY2.7%/univention/lib/admember.py", line 44, in <module> from samba.dcerpc import nbt, security File "/usr/lib/python2.7/dist-packages/samba/__init__.py", line 51, in <module> from samba._ldb import Ldb as _Ldb ImportError: /usr/lib/x86_64-linux-gnu/samba/libmsghdr.so.0: invalid ELF header
Reported again: Version: 4.2-3 errata52 (Lesum) Failed to load module setup: /usr/lib/x86_64-linux-gnu/samba/libevents.so.0: invalid ELF header Traceback (most recent call last): File "%PY2.7%/univention/management/console/protocol/modserver.py", line 101, in _load_module self.__module = __import__(file_, [], [], modname) File "%PY2.7%/univention/management/console/modules/setup/__init__.py", line 57, in <module> from univention.lib.admember import lookup_adds_dc, connectionFailed, failedADConnect File "%PY2.7%/univention/lib/admember.py", line 44, in <module> from samba.dcerpc import nbt, security File "/usr/lib/python2.7/dist-packages/samba/__init__.py", line 51, in <module> from samba._ldb import Ldb as _Ldb ImportError: /usr/lib/x86_64-linux-gnu/samba/libevents.so.0: invalid ELF header
This issue has been filled against UCS 4.1. The maintenance with bug and security fixes for UCS 4.1 has ended on 5st of April 2018. Customers still on UCS 4.1 are encouraged to update to UCS 4.3. Please contact your partner or Univention for any questions. If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you.