title: Raspberry pi, libarmmem.so (cannot open shared object file) error
body: <p>I'm using my Pi as a file server, recently when I logged in I saw a error message stating that libarmmem.so (cannot open shared object file), and despite some suggestions to run apt-get update + upgrade it did not bring much joy as it freezes the progress and just hanging.</p>
  
  <p>Does anyone have any suggestion what else I could try other than reflash the card, which i would like to avoid.</p>
  
  <p>From the console after  "sudo apt-get update":</p>
  
  <pre><code>The programs included with the Debian GNU/Linux system are free software;
  the exact distribution terms for each program are described in the
  individual files in /usr/share/doc/*/copyright.
  
  Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
  permitted by applicable law.
  Last login: Fri Feb 24 15:55:35 2017 from vpn.lshtm.ac.uk
  ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
  ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
  /usr/bin/xauth: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory
  ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
  ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
  ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
  admin@ProxyPi:~$ sudo apt-get update
  ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
  ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
  ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
  ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
  ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
  ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
  0% [Working]ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
  ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
  Hit http://archive.raspberrypi.org jessie InRelease
  Hit http://mirrordirector.raspbian.org jessie InRelease
  Hit http://archive.raspbian.org jessie InRelease
  12% [Waiting for headers] [Waiting for headers]ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
  ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
  Hit http://mirrordirector.raspbian.org jessie/main armhf Packages
  Hit http://archive.raspbian.org jessie/main Sources
  Hit http://archive.raspberrypi.org jessie/main armhf Packages
  Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
  Hit http://archive.raspbian.org jessie/contrib Sources
  Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages
  Hit http://archive.raspbian.org jessie/non-free Sources
  Hit http://archive.raspberrypi.org jessie/ui armhf Packages
  Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages
  Hit http://archive.raspbian.org jessie/rpi Sources
  Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB
  Ign http://archive.raspberrypi.org jessie/main Translation-en_GB
  Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
  Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB
  Ign http://archive.raspberrypi.org jessie/main Translation-en
  Ign http://mirrordirector.raspbian.org jessie/main Translation-en
  Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB
  Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB
  Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
  Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB
  Ign http://archive.raspberrypi.org jessie/ui Translation-en
  Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
  ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
  ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
  ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
  ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
  ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
  E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
  E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
  </code></pre>
  
  <p>And here is after suggested libfix command :</p>
  
  <pre><code>The programs included with the Debian GNU/Linux system are free software;
  the exact distribution terms for each program are described in the
  individual files in /usr/share/doc/*/copyright.
  
  Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
  permitted by applicable law.
  Last login: Fri Feb 24 15:39:44 2017 from vpn.lshtm.ac.uk
  ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
  ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
  /usr/bin/xauth: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory
  ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
  ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
  ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
  admin@ProxyPi:~$ sudo ldconfig -v
  ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
  ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
  /sbin/ldconfig.real: Path `/lib/arm-linux-gnueabihf' given more than once
  /sbin/ldconfig.real: Path `/usr/lib/arm-linux-gnueabihf' given more than once
  /opt/vc/lib:
          libmmal_core.so -&gt; libmmal_core.so
          libmmal_components.so -&gt; libmmal_components.so
          libopenmaxil.so -&gt; libopenmaxil.so
          libmmal.so -&gt; libmmal.so
          libWFC.so -&gt; libWFC.so
          libEGL.so -&gt; libEGL.so
          libvcsm.so -&gt; libvcsm.so
          libmmal_util.so -&gt; libmmal_util.so
          libvchiq_arm.so -&gt; libvchiq_arm.so
          libdebug_sym.so -&gt; libdebug_sym.so
          libGLESv2.so -&gt; libGLESv2.so
          libbcm_host.so -&gt; libbcm_host.so
          libOpenVG.so -&gt; libOpenVG.so
          libmmal_vc_client.so -&gt; libmmal_vc_client.so
          libvcos.so -&gt; libvcos.so
          libcontainers.so -&gt; libcontainers.so
  /lib/arm-linux-gnueabihf:
          libm.so.6 -&gt; libm-2.19.so
          librt.so.1 -&gt; librt-2.19.so
          libpcre.so.3 -&gt; libpcre.so.3.13.1
          libreadline.so.6 -&gt; libreadline.so.6.3
          libnss_mdns4_minimal.so.2 -&gt; libnss_mdns4_minimal.so.2
          libdbus-1.so.3 -&gt; libdbus-1.so.3.8.13
          libnss_mdns_minimal.so.2 -&gt; libnss_mdns_minimal.so.2
          libmemusage.so -&gt; libmemusage.so
          libdevmapper-event.so.1.02.1 -&gt; libdevmapper-event.so.1.02.1
          libpthread.so.0 -&gt; libpthread-2.19.so
          libSegFault.so -&gt; libSegFault.so
          libkmod.so.2 -&gt; libkmod.so.2.2.8
          libiw.so.30 -&gt; libiw.so.30
          libnss_nis.so.2 -&gt; libnss_nis-2.19.so
          libthread_db.so.1 -&gt; libthread_db-1.0.so
          libgpg-error.so.0 -&gt; libgpg-error.so.0.13.0
          libpam.so.0 -&gt; libpam.so.0.83.1
          libntfs-3g.so.852 -&gt; libntfs-3g.so.852.0.0
          libcap.so.2 -&gt; libcap.so.2.24
          libcryptsetup.so.4 -&gt; libcryptsetup.so.4.6.0
          libcom_err.so.2 -&gt; libcom_err.so.2.1
          libprocps.so.3 -&gt; libprocps.so.3.0.0
          libhistory.so.6 -&gt; libhistory.so.6.3
          libisccfg-export.so.90 -&gt; libisccfg-export.so.90.1.0
          libudev.so.1 -&gt; libudev.so.1.5.0
          libnl-3.so.200 -&gt; libnl-3.so.200.19.0
          libdevmapper.so.1.02.1 -&gt; libdevmapper.so.1.02.1
          libgcc_s.so.1 -&gt; libgcc_s.so.1
          libusb-1.0.so.0 -&gt; libusb-1.0.so.0.1.0
          libpam_misc.so.0 -&gt; libpam_misc.so.0.82.0
          libfuse.so.2 -&gt; libfuse.so.2.9.3
          libnss_mdns.so.2 -&gt; libnss_mdns.so.2
          libncurses.so.5 -&gt; libncurses.so.5.9
          libattr.so.1 -&gt; libattr.so.1.1.0
          libresolv.so.2 -&gt; libresolv-2.19.so
          libnss_compat.so.2 -&gt; libnss_compat-2.19.so
          libcidn.so.1 -&gt; libcidn-2.19.so
          libselinux.so.1 -&gt; libselinux.so.1
          libgcrypt.so.20 -&gt; libgcrypt.so.20.0.3
          libparted.so.2 -&gt; libparted.so.2.0.1
          libirs-export.so.91 -&gt; libirs-export.so.91.0.0
          libudev.so.0 -&gt; libudev.so.0.13.0
          libpopt.so.0 -&gt; libpopt.so.0.0.0
          libss.so.2 -&gt; libss.so.2.0
          libsysfs.so.2 -&gt; libsysfs.so.2.0.1
          libuuid.so.1 -&gt; libuuid.so.1.3.0
          libncursesw.so.5 -&gt; libncursesw.so.5.9
          liblzma.so.5 -&gt; liblzma.so.5.0.0
          libmount.so.1 -&gt; libmount.so.1.1.0
          libacl.so.1 -&gt; libacl.so.1.1.0
          libnss_nisplus.so.2 -&gt; libnss_nisplus-2.19.so
          libglib-2.0.so.0 -&gt; libglib-2.0.so.0.4200.1
          libpng12.so.0 -&gt; libpng12.so.0.50.0
          libnss_hesiod.so.2 -&gt; libnss_hesiod-2.19.so
          libatasmart.so.4 -&gt; libatasmart.so.4.0.5
          libbsd.so.0 -&gt; libbsd.so.0.7.0
          libwrap.so.0 -&gt; libwrap.so.0.7.6
          libpamc.so.0 -&gt; libpamc.so.0.82.1
          libnss_mdns6_minimal.so.2 -&gt; libnss_mdns6_minimal.so.2
          libsystemd.so.0 -&gt; libsystemd.so.0.3.1
          libaio.so.1 -&gt; libaio.so.1.0.1
          libslang.so.2 -&gt; libslang.so.2.3.0
          libply.so.2 -&gt; libply.so.2.1.0
          libnss_dns.so.2 -&gt; libnss_dns-2.19.so
          liblzo2.so.2 -&gt; liblzo2.so.2.0.0
          liblvm2app.so.2.2 -&gt; liblvm2app.so.2.2
          libply-boot-client.so.2 -&gt; libply-boot-client.so.2.1.0
          libe2p.so.2 -&gt; libe2p.so.2.3
          libtinfo.so.5 -&gt; libtinfo.so.5.9
          libanl.so.1 -&gt; libanl-2.19.so
          libblkid.so.1 -&gt; libblkid.so.1.1.0
          libc.so.6 -&gt; libc-2.19.so
          libusb-0.1.so.4 -&gt; libusb-0.1.so.4.4.4
          libnss_mdns6.so.2 -&gt; libnss_mdns6.so.2
          libsmartcols.so.1 -&gt; libsmartcols.so.1.1.0
          libcrypt.so.1 -&gt; libcrypt-2.19.so
          libbz2.so.1.0 -&gt; libbz2.so.1.0.4
          libexpat.so.1 -&gt; libexpat.so.1.6.0
          libply-splash-core.so.2 -&gt; libply-splash-core.so.2.1.0
          libnss_mdns4.so.2 -&gt; libnss_mdns4.so.2
          libnl-genl-3.so.200 -&gt; libnl-genl-3.so.200.19.0
          libz.so.1 -&gt; libz.so.1.2.8
          libnsl.so.1 -&gt; libnsl-2.19.so
          libtirpc.so.1 -&gt; libtirpc.so.1.0.10
          libply-splash-graphics.so.2 -&gt; libply-splash-graphics.so.2.1.0
  /sbin/ldconfig.real: /lib/arm-linux-gnueabihf/ld-2.19.so is the dynamic linker, ignoring
  
          ld-linux-armhf.so.3 -&gt; ld-2.19.so
          libBrokenLocale.so.1 -&gt; libBrokenLocale-2.19.so
          libdns-export.so.100 -&gt; libdns-export.so.100.2.2
          libaudit.so.1 -&gt; libaudit.so.1.0.0
          libsepol.so.1 -&gt; libsepol.so.1
          libjson-c.so.2 -&gt; libjson-c.so.2.0.0
          libdl.so.2 -&gt; libdl-2.19.so
          libutil.so.1 -&gt; libutil-2.19.so
          libnfsidmap.so.0 -&gt; libnfsidmap.so.0.3.0
          libpcprofile.so -&gt; libpcprofile.so
          libnss_files.so.2 -&gt; libnss_files-2.19.so
          libulockmgr.so.1 -&gt; libulockmgr.so.1.0.1
          libkeyutils.so.1 -&gt; libkeyutils.so.1.5
          libext2fs.so.2 -&gt; libext2fs.so.2.4
          libisc-export.so.95 -&gt; libisc-export.so.95.5.0
  /usr/lib/arm-linux-gnueabihf:
  /sbin/ldconfig.real: File /usr/lib/arm-linux-gnueabihf/libQtCLucene.so.4.8 is empty, not checked.
  /sbin/ldconfig.real: /usr/lib/arm-linux-gnueabihf/libQtXmlPatterns.so.4.8 is not an ELF file - it has the wrong magic bytes at the start.
  
  /sbin/ldconfig.real: /usr/lib/arm-linux-gnueabihf/libQtXmlPatterns.so.4 is not an ELF file - it has the wrong magic bytes at the start.
  
  /sbin/ldconfig.real: File /usr/lib/arm-linux-gnueabihf/libQtCLucene.so.4.8.6 is empty, not checked.
  /sbin/ldconfig.real: /usr/lib/arm-linux-gnueabihf/libQtNetwork.so.4.8 is not an ELF file - it has the wrong magic bytes at the start.
  
  /sbin/ldconfig.real: File /usr/lib/arm-linux-gnueabihf/libQtCLucene.so.4 is empty, not checked.
  /sbin/ldconfig.real: /usr/lib/arm-linux-gnueabihf/libQtXmlPatterns.so.4.8.6 is not an ELF file - it has the wrong magic bytes at the start.
  </code></pre>