Sad face boot loop - missing shared object

Just did the update as usual, but now stuck in a sad face boot loop.

When I ssh and try to run kodi:

osmc@osmc:~$ kodi
/usr/lib/kodi/kodi.bin: error while loading shared libraries: libhcrypto-samba4.so.5: cannot open shared object file: No such file or directory

osmc@osmc:~$ ls /usr/lib/arm-linux-gnueabihf/samba/libhc*
/usr/lib/arm-linux-gnueabihf/samba/libhcrypto-samba4.so.5  /usr/lib/arm-linux-gnueabihf/samba/libhcrypto-samba4.so.5.0.1

osmc@osmc:~$ ldd /usr/lib/kodi/kodi.bin
linux-vdso.so.1 (0x7ef35000)
/usr/lib/libarmmem.so (0x76f69000)
libavahi-client.so.3 => /usr/lib/arm-linux-gnueabihf/libavahi-client.so.3 (0x76f46000)
libavahi-common.so.3 => /usr/lib/arm-linux-gnueabihf/libavahi-common.so.3 (0x76f2d000)
libmicrohttpd.so.10 => /usr/lib/arm-linux-gnueabihf/libmicrohttpd.so.10 (0x76f0e000)
libresolv.so.2 => /lib/arm-linux-gnueabihf/libresolv.so.2 (0x76eee000)
libmysqlclient.so.18 => /usr/lib/arm-linux-gnueabihf/libmysqlclient.so.18 (0x76c02000)
libssl.so.1.0.0 => /usr/lib/arm-linux-gnueabihf/libssl.so.1.0.0 (0x76bb8000)
libcrypto.so.1.0.0 => /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0 (0x76a92000)
libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0x76a70000)
liblzo2.so.2 => /lib/arm-linux-gnueabihf/liblzo2.so.2 (0x76a4a000)
libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0x76a27000)
libbz2.so.1.0 => /lib/arm-linux-gnueabihf/libbz2.so.1.0 (0x76a0a000)
libpython2.7.so.1.0 => /usr/lib/arm-linux-gnueabihf/libpython2.7.so.1.0 (0x76788000)
libbrcmEGL.so => /opt/vc/lib/libbrcmEGL.so (0x7674f000)
libbrcmGLESv2.so => /opt/vc/lib/libbrcmGLESv2.so (0x7672a000)
libbcm_host.so => /opt/vc/lib/libbcm_host.so (0x76703000)
libvcos.so => /opt/vc/lib/libvcos.so (0x766e8000)
libvchiq_arm.so => /opt/vc/lib/libvchiq_arm.so (0x766d2000)
libmmal.so => /opt/vc/lib/libmmal.so (0x766bf000)
libmmal_core.so => /opt/vc/lib/libmmal_core.so (0x766a1000)
libmmal_util.so => /opt/vc/lib/libmmal_util.so (0x76681000)
libvcsm.so => /opt/vc/lib/libvcsm.so (0x7666c000)
libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0x76659000)
libtinyxml.so.2.6.2 => /usr/lib/arm-linux-gnueabihf/libtinyxml.so.2.6.2 (0x76642000)
libuuid.so.1 => /lib/arm-linux-gnueabihf/libuuid.so.1 (0x7662e000)
libyajl.so.2 => /usr/lib/arm-linux-gnueabihf/libyajl.so.2 (0x76617000)
libxml2.so.2 => /usr/lib/arm-linux-gnueabihf/libxml2.so.2 (0x7652c000)
libxslt.so.1 => /usr/lib/arm-linux-gnueabihf/libxslt.so.1 (0x764f1000)
libfribidi.so.0 => /usr/lib/arm-linux-gnueabihf/libfribidi.so.0 (0x764cc000)
libsqlite3.so.0 => /usr/osmc/lib/libsqlite3.so.0 (0x76413000)
libpcre.so.3 => /lib/arm-linux-gnueabihf/libpcre.so.3 (0x763b7000)
libpcrecpp.so.0 => /usr/lib/arm-linux-gnueabihf/libpcrecpp.so.0 (0x763a0000)
libfreetype.so.6 => /usr/lib/arm-linux-gnueabihf/libfreetype.so.6 (0x7632a000)
libtag.so.1 => /usr/lib/arm-linux-gnueabihf/libtag.so.1 (0x76297000)
libcdio.so.13 => /usr/lib/libcdio.so.13 (0x7626f000)
libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0x761fb000)
libasound.so.2 => /usr/lib/arm-linux-gnueabihf/libasound.so.2 (0x7615e000)
libdbus-1.so.3 => /lib/arm-linux-gnueabihf/libdbus-1.so.3 (0x76122000)
libssh.so.4 => /usr/lib/arm-linux-gnueabihf/libssh.so.4 (0x760e5000)
libsmbclient.so.0 => /usr/lib/arm-linux-gnueabihf/libsmbclient.so.0 (0x760bc000)
libudev.so.1 => /lib/arm-linux-gnueabihf/libudev.so.1 (0x760a2000)
libcap.so.2 => /lib/arm-linux-gnueabihf/libcap.so.2 (0x7608e000)
libgnutls-deb0.so.28 => /usr/lib/arm-linux-gnueabihf/libgnutls-deb0.so.28 (0x75fc7000)
liblzma.so.5 => /lib/arm-linux-gnueabihf/liblzma.so.5 (0x75f9f000)
libp11-kit.so.0 => /usr/lib/arm-linux-gnueabihf/libp11-kit.so.0 (0x75f66000)
libgmp.so.10 => /usr/lib/arm-linux-gnueabihf/libgmp.so.10 (0x75f09000)
libhogweed.so.2 => /usr/lib/arm-linux-gnueabihf/libhogweed.so.2 (0x75ed4000)
libnettle.so.4 => /usr/lib/arm-linux-gnueabihf/libnettle.so.4 (0x75e9a000)
libtasn1.so.6 => /usr/lib/arm-linux-gnueabihf/libtasn1.so.6 (0x75e7e000)
libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0x75dc7000)
libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0x75d9e000)
libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x75cae000)
/lib/ld-linux-armhf.so.3 (0x54b1e000)
libgcrypt.so.20 => /lib/arm-linux-gnueabihf/libgcrypt.so.20 (0x75c1e000)
libutil.so.1 => /lib/arm-linux-gnueabihf/libutil.so.1 (0x75c0b000)
librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0x75bf5000)
libmmal_vc_client.so => /opt/vc/lib/libmmal_vc_client.so (0x75bda000)
libmmal_components.so => /opt/vc/lib/libmmal_components.so (0x75bbe000)
libcontainers.so => /opt/vc/lib/libcontainers.so (0x75b9d000)
libpng12.so.0 => /lib/arm-linux-gnueabihf/libpng12.so.0 (0x75b74000)
libgssapi_krb5.so.2 => /usr/lib/arm-linux-gnueabihf/libgssapi_krb5.so.2 (0x75b3a000)
libsamba-util.so.0 => /usr/lib/arm-linux-gnueabihf/libsamba-util.so.0 (0x75b06000)
liblibsmb.so.0 => /usr/lib/arm-linux-gnueabihf/samba/liblibsmb.so.0 (0x75ab6000)
libmsrpc3.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libmsrpc3.so.0 (0x75a90000)
liblibcli-lsa3.so.0 => /usr/lib/arm-linux-gnueabihf/samba/liblibcli-lsa3.so.0 (0x75a7d000)
libsamba-security.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libsamba-security.so.0 (0x75a5a000)
liberrors.so.0 => /usr/lib/arm-linux-gnueabihf/samba/liberrors.so.0 (0x7597b000)
libsmbconf.so.0 => /usr/lib/arm-linux-gnueabihf/libsmbconf.so.0 (0x7591f000)
libndr.so.0 => /usr/lib/arm-linux-gnueabihf/libndr.so.0 (0x75901000)
libcli-smb-common.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libcli-smb-common.so.0 (0x758d5000)
libgse.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libgse.so.0 (0x758a8000)
libutil-cmdline.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libutil-cmdline.so.0 (0x75894000)
libndr-standard.so.0 => /usr/lib/arm-linux-gnueabihf/libndr-standard.so.0 (0x7567f000)
libdcerpc-samba.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libdcerpc-samba.so.0 (0x75566000)
libsmbregistry.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libsmbregistry.so.0 (0x75541000)
libsecrets3.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libsecrets3.so.0 (0x75529000)
libbsd.so.0 => /lib/arm-linux-gnueabihf/libbsd.so.0 (0x7550e000)
libtalloc.so.2 => /usr/lib/arm-linux-gnueabihf/libtalloc.so.2 (0x754ef000)
libattr.so.1 => /lib/arm-linux-gnueabihf/libattr.so.1 (0x754db000)
libffi.so.6 => /usr/lib/arm-linux-gnueabihf/libffi.so.6 (0x754c5000)
libgpg-error.so.0 => /lib/arm-linux-gnueabihf/libgpg-error.so.0 (0x754a9000)
libkrb5.so.3 => /usr/lib/arm-linux-gnueabihf/libkrb5.so.3 (0x75413000)
libk5crypto.so.3 => /usr/lib/arm-linux-gnueabihf/libk5crypto.so.3 (0x753de000)
libcom_err.so.2 => /lib/arm-linux-gnueabihf/libcom_err.so.2 (0x753cb000)
libkrb5support.so.0 => /usr/lib/arm-linux-gnueabihf/libkrb5support.so.0 (0x753b4000)
libkeyutils.so.1 => /lib/arm-linux-gnueabihf/libkeyutils.so.1 (0x753a0000)
libsocket-blocking.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libsocket-blocking.so.0 (0x7538e000)
libtevent.so.0 => /usr/lib/arm-linux-gnueabihf/libtevent.so.0 (0x75375000)
libcli-cldap.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libcli-cldap.so.0 (0x7535f000)
libcliauth.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libcliauth.so.0 (0x75342000)
libkrb5samba.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libkrb5samba.so.0 (0x75329000)
libgensec.so.0 => /usr/lib/arm-linux-gnueabihf/libgensec.so.0 (0x752fc000)
libcom_err-samba4.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libcom_err-samba4.so.0 (0x752ea000)
libasn1util.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libasn1util.so.0 (0x752d6000)
libtevent-util.so.0 => /usr/lib/arm-linux-gnueabihf/libtevent-util.so.0 (0x752c3000)
libndr-nbt.so.0 => /usr/lib/arm-linux-gnueabihf/libndr-nbt.so.0 (0x752a3000)
libsamba-hostconfig.so.0 => /usr/lib/arm-linux-gnueabihf/libsamba-hostconfig.so.0 (0x75279000)
libsmb-transport.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libsmb-transport.so.0 (0x75265000)
libsamba3-util.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libsamba3-util.so.0 (0x7524e000)
libsamba-credentials.so.0 => /usr/lib/arm-linux-gnueabihf/libsamba-credentials.so.0 (0x75231000)
libCHARSET3.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libCHARSET3.so.0 (0x7521d000)
libndr-samba.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libndr-samba.so.0 (0x75155000)
libdbwrap.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libdbwrap.so.0 (0x7513c000)
libdcerpc-binding.so.0 => /usr/lib/arm-linux-gnueabihf/libdcerpc-binding.so.0 (0x75117000)
libutil-tdb.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libutil-tdb.so.0 (0x75104000)
libsamba-sockets.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libsamba-sockets.so.0 (0x750e4000)
libinterfaces.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libinterfaces.so.0 (0x750d2000)
libsamba-cluster-support.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libsamba-cluster-support.so.0 (0x750b2000)
libutil-reg.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libutil-reg.so.0 (0x750a0000)
libsmbd-shim.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libsmbd-shim.so.0 (0x7508d000)
libutil-setid.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libutil-setid.so.0 (0x7507b000)
libtdb-wrap.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libtdb-wrap.so.0 (0x75066000)
libserver-role.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libserver-role.so.0 (0x75054000)
libnsl.so.1 => /lib/arm-linux-gnueabihf/libnsl.so.1 (0x75034000)
libtdb.so.1 => /usr/lib/arm-linux-gnueabihf/libtdb.so.1 (0x75015000)
liblber-2.4.so.2 => /usr/lib/arm-linux-gnueabihf/liblber-2.4.so.2 (0x74ffc000)
libldap_r-2.4.so.2 => /usr/lib/arm-linux-gnueabihf/libldap_r-2.4.so.2 (0x74fc9000)
libkrb5-samba4.so.26 => /usr/lib/arm-linux-gnueabihf/samba/libkrb5-samba4.so.26 (0x74f78000)
libaddns.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libaddns.so.0 (0x74f5e000)
libgssapi-samba4.so.2 => /usr/lib/arm-linux-gnueabihf/samba/libgssapi-samba4.so.2 (0x74f32000)
libauthkrb5.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libauthkrb5.so.0 (0x74f0e000)
libcli-nbt.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libcli-nbt.so.0 (0x74ef6000)
libcli-ldap-common.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libcli-ldap-common.so.0 (0x74edf000)
libldb.so.1 => /usr/lib/arm-linux-gnueabihf/libldb.so.1 (0x74eb2000)
libasn1-samba4.so.8 => /usr/lib/arm-linux-gnueabihf/samba/libasn1-samba4.so.8 (0x74e5c000)
libwbclient.so.0 => /usr/lib/arm-linux-gnueabihf/libwbclient.so.0 (0x74e42000)
libsamba-modules.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libsamba-modules.so.0 (0x74e2e000)
libsamdb.so.0 => /usr/lib/arm-linux-gnueabihf/libsamdb.so.0 (0x74e0d000)
libsamdb-common.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libsamdb-common.so.0 (0x74de7000)
libldbsamba.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libldbsamba.so.0 (0x74dbb000)
libutil-ntdb.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libutil-ntdb.so.0 (0x74da7000)
libntdb.so.1 => /usr/lib/arm-linux-gnueabihf/libntdb.so.1 (0x74d8f000)
libsasl2.so.2 => /usr/lib/arm-linux-gnueabihf/libsasl2.so.2 (0x74d6e000)
libheimbase-samba4.so.1 => /usr/lib/arm-linux-gnueabihf/samba/libheimbase-samba4.so.1 (0x74d5b000)
libhx509-samba4.so.5 => /usr/lib/arm-linux-gnueabihf/samba/libhx509-samba4.so.5 (0x74d21000)
libhcrypto-samba4.so.5 => not found
libroken-samba4.so.19 => /usr/lib/arm-linux-gnueabihf/samba/libroken-samba4.so.19 (0x74d08000)
libwind-samba4.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libwind-samba4.so.0 (0x74cd1000)
libhcrypto-samba4.so.5 => not found
libndr-krb5pac.so.0 => /usr/lib/arm-linux-gnueabihf/libndr-krb5pac.so.0 (0x74cb9000)
libauth-sam-reply.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libauth-sam-reply.so.0 (0x74ca6000)
libwinbind-client.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libwinbind-client.so.0 (0x74c93000)
libflag-mapping.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libflag-mapping.so.0 (0x74c81000)
libcrypt.so.1 => /lib/arm-linux-gnueabihf/libcrypt.so.1 (0x74c41000)
libhcrypto-samba4.so.5 => not found

I’m not really sure what to do. Anybody else experience this?

I tried running as well:

sudo apt-get install samba

but it ended in errors:


Setting up tdb-tools (1.3.6-0+deb8u1) …
update-alternatives: using /usr/bin/tdbbackup.tdbtools to provide /usr/bin/tdbbackup (tdbbackup) in auto mode
Setting up libfile-copy-recursive-perl (0.38-1) …
Setting up update-inetd (4.43) …
Setting up samba (2:4.2.14+dfsg-0+deb8u8) …
Adding group `sambashare’ (GID 112) …
Done.
Job for smbd.service failed. See ‘systemctl status smbd.service’ and ‘journalctl -xn’ for details.
invoke-rc.d: initscript smbd, action “start” failed.
dpkg: error processing package samba (–configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.19-18+deb8u10) …
Processing triggers for systemd (215-17+deb8u7) …
Errors were encountered while processing:
samba
E: Sub-process /usr/bin/dpkg returned an error code (1)

Did the upgrade proceed without error?
Provide full logs with grab-logs -A maybe we see what went wrong

Just as a FYI, but /usr/lib/arm-linux-gnueabihf/samba/libhcrypto-samba4.so.5 is part of the samba-libs package.

osmc@osmc:~$ dpkg -S /usr/lib/arm-linux-gnueabihf/samba/libhcrypto-samba4.so.5
samba-libs:armhf: /usr/lib/arm-linux-gnueabihf/samba/libhcrypto-samba4.so.5
osmc@osmc:~$ dpkg -l samba-libs
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              Architecture         Description
+++-===============================-====================-====================-====================================================================
ii  samba-libs:armhf                2:4.2.14+dfsg-0+deb8 armhf                Samba core libraries

Thank you both for the replies.

@fzinken The upgrade through OSMC did not complete without error. After some attempts at tinkering, I grabbed the logs:

https://paste.osmc.tv/fubuhexada

@dillthedog I’m not at home right now, but should I try installing samba-libs? I’m assuming they exist as a package e.g. sudo apt-get install samba-libs?

I already tried installing samba by itself.

Nothing stands out so it might be an SD card corruption.

Try these one at a time and see if you can get mediacenter to start after each command.

sudo ldconfig
sudo apt-get install --reinstall samba-libs

If no success, run these diagnostics:

md5sum  /usr/lib/arm-linux-gnueabihf/samba/libhcrypto-samba4.so.5
readelf -a /usr/lib/arm-linux-gnueabihf/samba/libhcrypto-samba4.so.5.0.1|grep RPATH
1 Like

Thanks. I’ll try that when I get home.

That solved my problem!! Thank you!

Good to hear it’s working.

Out of interest, which one fixed it? Either way, it was probably down to a filesystem glitch but if it happens too often, then your SD card might be on the way out.

I’ll be honest, I ran both commands then I was successful, but I’m pretty sure

sudo apt-get install --reinstall samba-libs

is the one that solved it as I ran sudo ldconfig during my try-everything-rampage.

sudo apt-get install --reinstall samba-libs

did the trick for me. Thanks!

1 Like