apt-get: error while loading shared libraries !!!HILFE!!!

Registriere dich jetzt, um exklusive Vorteile zu genießen! Als registriertes Mitglied kannst du Inhalte herunterladen und profitierst von einem werbefreien Forum.
Mach mit und werde Teil unserer Community!
  • Hallo;


    möchte mich erstmal Vorstellen.

    Bin Michael aus den Raum Bamberg und bin sei 17 Jahren in der EDV Abteilung tätig und setzen so dies und das mit dem RPI um.

    Aktuell habe ich leider bei mir zu Hause ein Problem und seit 3 oder 4 tägigen Forenbeiträgen durchlesen musste ich jetzt einfach die Frage stellen da ich nicht weiter komme.


    Habe einen RPI 3 zuhause laufen mit nem IO-Broker der jetzt aktuell nicht mehr läuft.


    Egal was ich versuche ob update ugrade... versuche packete zu deinstallieren oder installieren, es führt mich immer zur gleichen Meldung


    apt-get: error while loading shared libraries: /lib/arm-linux-gnueabihf/libapt-pkg.so.5.0: Unable to run arch-specific checks


    und ich komm einfach nicht weiter. Denke ich habe jetzt schon vieles aus "Google" probiert aber nichts klappt. hat jemand eine Idee?

  • Habe es ehrlich gesagt wahrscheinlich erst spät gemerkt als ich letztens eine funktion hinzufügen wollte. Kam nicht mer auf die admin instanz; ich denke fast, dass durch ein autoupdate falls da was aktiv war irgendetwas zerschossen hat


    Das komische ist nur das es nicht zu iobroker betrifft sondern ja das ganze system meiner meinung nach

  • Auch habe ich versucht das libapt-pkg.so.5.0 manuell zu installieren aber komme da nicht weiter; kann dies vielleicht mal einer beschreiben wie das das am besten manuell installiert?

  • apt-get: error while loading shared libraries: /lib/arm-linux-gnueabihf/libapt-pkg.so.5.0: Unable to run arch-specific checks

    Wie sind die Ausgaben von:

    Code
    apt policy libapt-pkg5.0
    dpkg --print-architecture
    uname -a

    ?

    The most popular websites without IPv6 in Germany.  IPv6-Ausreden

  • Hier der Auszug


    pi@raspberrypi:~ $ apt policy libapt-pkg5.0

    apt: error while loading shared libraries: /lib/arm-linux-gnueabihf/libapt-pkg.s o.5.0: Unable to run arch-specific checks


    pi@raspberrypi:~ $ dpkg --print-architecture

    armhf


    pi@raspberrypi:~ $ uname -a

    Linux raspberrypi 5.10.17-v7+ #1414 SMP Fri Apr 30 13:18:35 BST 2021 armv7l GNU/ Linux

  • pi@raspberrypi:~ $ apt policy libapt-pkg5.0

    apt: error while loading shared libraries: /lib/arm-linux-gnueabihf/libapt-pkg.s o.5.0: Unable to run arch-specific checks

    War das wirklich die Ausgabe, oder ist das ein c&p-Fehler? ... mit Leerstelle zwischen s und o?

    Wie ist die Ausgabe von:

    Code
    readelf --arch-specific /lib/arm-linux-gnueabihf/libapt-pkg.so.5.0

    ?

    Die Frage ist, warum will hier apt, "architecture-specific information from the file"? Evtl. gibt es diese Infos gar nicht ...


    EDIT:


    ... und die Ausgaben von:

    Code
    file /lib/arm-linux-gnueabihf/libapt-pkg.so.5.0.0
    ls -la /lib/arm-linux-gnueabihf/libapt-pkg.so.5.0
    readelf --arch-specific /lib/arm-linux-gnueabihf/libapt-pkg.so.5.0.0

    ?

    The most popular websites without IPv6 in Germany.  IPv6-Ausreden

    Edited 4 times, last by rpi444 ().

  • pi@raspberrypi:~ $ readelf --arch-specific /lib/arm-linux-gnueabihf/libapt-pkg.so.5.0

    readelf: Warning: Section 24 has an out of range sh_link value of 1024

    readelf: Warning: Section 27 has an out of range sh_link value of 8388608

    readelf: Error: no .dynamic section in the dynamic segment

    readelf: Error: Reading 65581 bytes extends past end of file for attributes


    pi@raspberrypi:~ $ file /lib/arm-linux-gnueabihf/libapt-pkg.so.5.0.0

    /lib/arm-linux-gnueabihf/libapt-pkg.so.5.0.0: cannot open `/lib/arm-linux-gnueabihf/libapt-pkg.so.5.0.0' (No such file or directory)


    pi@raspberrypi:~ $ ls -la /lib/arm-linux-gnueabihf/libapt-pkg.so.5.0

    lrwxrwxrwx 1 root root 19 Apr 19 2021 /lib/arm-linux-gnueabihf/libapt-pkg.so.5.0 -> libapt-pkg.so.5.0.2


    pi@raspberrypi:~ $ readelf --arch-specific /lib/arm-linux-gnueabihf/libapt-pkg.so.5.0.0

    readelf: Error: '/lib/arm-linux-gnueabihf/libapt-pkg.so.5.0.0': No such file


    Es scheint als wären die Dateien bzw. Pfade nicht mehr da oder sehe ich das falsch?


    Und erstmal herzlichen dank für die Unterstützung

  • Quote

    pi@raspberrypi:~ $ apt policy libapt-pkg5.0

    apt: error while loading shared libraries: /lib/arm-linux-gnueabihf/libapt-pkg.s o.5.0: Unable to run arch-specific checks

    Richtige Ausgabe, gerade nochmals ausgeführt


    pi@raspberrypi:~ $ apt policy libapt-pkg5.0

    apt: error while loading shared libraries: /lib/arm-linux-gnueabihf/libapt-pkg.so.5.0: Unable to run arch-specific checks


    Hier ist kein leerzeichen zwischen s und o

  • pi@raspberrypi:~ $ ls -la /lib/arm-linux-gnueabihf/libapt-pkg.so.5.0

    lrwxrwxrwx 1 root root 19 Apr 19 2021 /lib/arm-linux-gnueabihf/libapt-pkg.so.5.0 -> libapt-pkg.so.5.0.2

    Dann poste mal die Ausgaben von:

    Code
    ls -la /lib/arm-linux-gnueabihf/libapt-pkg.so.5.0.2
    file /lib/arm-linux-gnueabihf/libapt-pkg.so.5.0.2
    readelf --arch-specific /lib/arm-linux-gnueabihf/libapt-pkg.so.5.0.2
    ldd /lib/arm-linux-gnueabihf/libapt-pkg.so.5.0.2

    EDIT:


    ... und die Ausgaben von:

    Code
    df -h
    df -i
    sudo dumpe2fs -h /dev/mmcblk0p2 | grep -iE 'check|clean'  # partition evtl. anpassen

    ?

    The most popular websites without IPv6 in Germany.  IPv6-Ausreden

    Edited once, last by rpi444 ().

  • pi@raspberrypi:~ $ ls -la /lib/arm-linux-gnueabihf/libapt-pkg.so.5.0.2

    -rw-r--r-- 1 root root 1558908 Apr 19 2021 /lib/arm-linux-gnueabihf/libapt-pkg.so.5.0.2


    pi@raspberrypi:~ $ file /lib/arm-linux-gnueabihf/libapt-pkg.so.5.0.2

    /lib/arm-linux-gnueabihf/libapt-pkg.so.5.0.2: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (GNU/Linux), dynamically linked, BuildID[sha1]=3145cd668acc342e42982a4e7816ea387cda7555, stripped


    pi@raspberrypi:~ $ readelf --arch-specific /lib/arm-linux-gnueabihf/libapt-pkg.so.5.0.2

    readelf: Warning: Section 24 has an out of range sh_link value of 1024

    readelf: Warning: Section 27 has an out of range sh_link value of 8388608

    readelf: Error: no .dynamic section in the dynamic segment

    readelf: Error: Reading 65581 bytes extends past end of file for attributes


    pi@raspberrypi:~ $ ldd /lib/arm-linux-gnueabihf/libapt-pkg.so.5.0.2

    not a dynamic executable

  • pi@raspberrypi:~ $ df -h

    Filesystem Size Used Avail Use% Mounted on

    /dev/root 29G 5.6G 22G 21% /

    devtmpfs 430M 0 430M 0% /dev

    tmpfs 463M 0 463M 0% /dev/shm

    tmpfs 463M 47M 416M 11% /run

    tmpfs 5.0M 4.0K 5.0M 1% /run/lock

    tmpfs 463M 0 463M 0% /sys/fs/cgroup

    /dev/mmcblk0p1 253M 48M 205M 19% /boot

    tmpfs 93M 0 93M 0% /run/user/1000



    pi@raspberrypi:~ $ df -i

    Filesystem Inodes IUsed IFree IUse% Mounted on

    /dev/root 1909440 179580 1729860 10% /

    devtmpfs 109979 377 109602 1% /dev

    tmpfs 118299 1 118298 1% /dev/shm

    tmpfs 118299 482 117817 1% /run

    tmpfs 118299 3 118296 1% /run/lock

    tmpfs 118299 15 118284 1% /sys/fs/cgroup

    /dev/mmcblk0p1 0 0 0 - /boot

    tmpfs 118299 10 118289 1% /run/user/1000



    pi@raspberrypi:~ $ sudo dumpe2fs -h /dev/mmcblk0p2 | grep -iE 'check|clean' # partition evtl. anpassen

    dumpe2fs 1.44.5 (15-Dec-2018)

    Filesystem state: clean

    Last checked: Fri May 7 15:59:42 2021

    Check interval: 0 (<none>)

  • Das passt nicht zusammen.


    Schau mal in den Dateien:

    Code
    /var/log/apt/history.log
    /var/log/apt/term.log

    ob und wann evtl. was am Paket libapt-pkg5.0 geändert worden ist.

    Evtl. ist es auch ein Fehler im Datenträger (SD-Karte).

    The most popular websites without IPv6 in Germany.  IPv6-Ausreden

  • Komm ich in beiden Verzeichnissen nicht rein


    pi@raspberrypi:~ $ /var/log/apt/history.log

    -bash: /var/log/apt/history.log: Permission denied

    pi@raspberrypi:~ $ /var/log/apt/term.log

    -bash: /var/log/apt/term.log: Permission denied

  • So, wie das aussieht, versuchst Du diese Logdateien auszuführen. Daher diese Fehlermeldungen.
    Das hier sollte gehen

    Code
    sudo tail -50 /var/log/apt/history.log
    sudo tail -50 /var/log/apt/term.log

    Edited once, last by pisel ().

  • pi@raspberrypi:~ $ sudo tail -50 /var/log/apt/history.log


    pi@raspberrypi:~ $ sudo tail -50/var/log/apt/term.log

    tail: option used in invalid context -- 5


    passiert ebenfalls nichts

  • pi@raspberrypi:~ $ sudo tail -50 /var/log/apt/term.log

    pi@raspberrypi:~ $


    passiert leider auch nichts weiter