LM 21.3, Aktualsierungsverwaltung, Fehler Meldung Python3 Unterprozess gibt Fehler 4 zurück

  • Distrowahl
    Linux Mint

    Hallo zusammen

    Ich wollte mit der Aktualsierungsverwaltung die Programme auf den neusten Stand bringen. Dabei erscheint gleich nach den Auffrischen und dem Start der "Aktualisierungen installieren" erscheint die Meldung und es geht nicht weiter :

    Fehler im Paket python3

    E: python3: »installiertes python3-Skript des Paketes post-installation«-Unterprozess gab den Fehlerwert 4 zurück

    Linux Mint 21.3 AMD Ryzen 5500U, 1 TB, 8GB RAM, Laptop ist 3 Jahre alt.

    Ich habe versucht, Datenpakete zu reparieren - ohne Erfolg. Auf der Aktualisierungsliste steht auch der "Linux Kernel 5.15.0-119.129". Ich habe nachgeschaut welcher Kernel zur Zeit aktiv ist: 5.15.0-118 Aktiv wurde ersetzt. 5.15.0-117 ist Installiert.

    Detaillierte Fehlermeldung:

    xtrahiere Vorlagen aus Paketen: 100%
    python3 (3.10.6-1~22.04.1) wird eingerichtet ...
    running python rtupdate hooks for python3.10...
    E: py3compile:272: Requested versions are not installed
    error running python rtupdate hook xviewer-plugins
    dpkg: Fehler beim Bearbeiten des Paketes python3 (--configure):
    »installiertes python3-Skript des Paketes post-installation«-Unterprozess gab den Fehlerwert 4 zurück
    Fehler traten auf beim Bearbeiten von:
    python3
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    Ein Paket konnte nicht installiert werden. Wiederherstellung wird versucht:
    python3 (3.10.6-1~22.04.1) wird eingerichtet ...
    running python rtupdate hooks for python3.10...
    E: py3compile:272: Requested versions are not installed
    error running python rtupdate hook xviewer-plugins
    dpkg: Fehler beim Bearbeiten des Paketes python3 (--configure):
    »installiertes python3-Skript des Paketes post-installation«-Unterprozess gab den Fehlerwert 4 zurück
    dpkg: Abhängigkeitsprobleme verhindern Konfiguration von python3-dev:
    python3-dev hängt ab von python3 (= 3.10.6-1~22.04.1); aber:
    Paket python3 ist noch nicht konfiguriert.

    dpkg: Fehler beim Bearbeiten des Paketes python3-dev (--configure):
    Abhängigkeitsprobleme - verbleibt unkonfiguriert
    Fehler traten auf beim Bearbeiten von:
    python3
    python3-dev

    sudo apt-get install python3
    Paketlisten werden gelesen… Fertig
    Abhängigkeitsbaum wird aufgebaut… Fertig
    Statusinformationen werden eingelesen… Fertig
    python3 ist schon die neueste Version (3.10.6-1~22.04.1).
    E: Sperre /var/cache/apt/archives/lock konnte nicht erlangt werden. Sie wird von Prozess 4001 (synaptic) gehalten.
    N: Beachten Sie, dass das Entfernen der Sperrdatei keine Lösung ist und Ihr System beschädigen kann.
    E: Das Verzeichnis /var/cache/apt/archives/ kann nicht gesperrt werden.


    Besten Dank im voraus für Hinweise. Viele Grüsss Turbo

    Edited 2 times, last by Turbo (August 25, 2024 at 7:27 PM).

  • Go to Best Answer
  • Ja habe ich auch . Komischerweise verschwindet auf einmal das in der Aktualisierungsverwaltung. Meine Vermutung ist mal wieder ein Bug. Die Lösungen im Internet sind ja uralt.

    Hier ist Permission-Fehler, als ob da schon einer was gemeldet hatte.

    Fehler beim Aktualisieren: "Fehler beim Bearbeiten des Paketes python3"

    So mittlerweile fängt Mint an unzuverlässig zu werden, obwohl ich mein System sauber halte. So ein Fall hatte ich mal mit meinem alten Dualcore-PC und Mint 18. Mit den Jahren häuften sich dann die Fehlermeldungen bzw Abhängigkeitsprobleme.

    Und ehrlich, ich habe momentan kein Bock auf 22 zu wechseln, weil schon alleine mein Upgrade Probleme bereitete. Ich muss mit dem System arbeiten.

    Wenn dann Neuinstallation, werde ich wohl von Mint weggehen. dh. Evtl Debian verwenden.

  • Einfach mal PC neu starten und nochmal versuchen. Wenn das nicht klappt:


    Code
    sudo apt update
    sudo apt --fix-broken install
    sudo dpkg --configure -a

    Meine Projekte:

    GuideOS Logo PiGro-Aid Logo

    Auf Linux seit 2003 | Python-Jünger| Wir reden ja hier über Computer, das sind Arbeitsgeräte und keine Religion.

    --

    Wir sind hier alle Trekkis, Star Wars müffelt!

  • Stephan und Actionschnitzel, vielen Dank für Eure Hilfe.

    Die Lösung von Stephan hat den Fehler korrigiert - Danke schön! :)Beim Durchsuchen des Internets hatte ich nichts passendes gefunden.

  • Turbo August 26, 2024 at 7:31 AM

    Selected a post as the best answer.
  • Hallo,

    Ich muss dieses Thema leider noch mal aufgreifen, da ich hier auch ein Problem mit diesem Update habe.

    Die beiden oben aufgelisteten Hilfestellungen haben bei mir leider keinen Erfolg erbracht, nach Eingabe von

    Code
    mv /usr/bin/py3compile /usr/bin/py3compile.orig
    ln -s $(which true) /usr/bin/py3compile

    bekomme ich lediglich einen Fehler mit "mv: Ungültige Option -- s"

    mit

    Code
    sudo apt update

    bekomme ich folgende Auflistung:

    "Aktualisierung für 1 Paket verfügbar. Führen Sie »apt list --upgradable« aus, um es anzuzeigen."

    "shim-signed/jammy-updates 1.51.4+15.8-0ubuntu1 amd64 [aktualisierbar von: 1.51.3+15.7-0ubuntu1]"

    wie kann ich das Updaten?

    Code
    sudo apt --fix-broken install

    0 aktualisiert, 0 neu installiert, 0 zu entfernen und 1 nicht aktualisiert.
    1 nicht vollständig installiert oder entfernt.
    Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
    python3 (3.10.6-1~22.04.1) wird eingerichtet ...
    running python rtupdate hooks for python3.10...
    /usr/share/python3/runtime.d/cinnamon-common.rtupdate: 6: py3compile: not found
    error running python rtupdate hook cinnamon-common
    /usr/share/python3/runtime.d/cinnamon-screensaver.rtupdate: 6: py3compile: not found
    error running python rtupdate hook cinnamon-screensaver
    /usr/share/python3/runtime.d/cinnamon-session.rtupdate: 6: py3compile: not found
    error running python rtupdate hook cinnamon-session
    /usr/share/python3/runtime.d/gdebi-core.rtupdate: 6: py3compile: not found
    error running python rtupdate hook gdebi-core
    /usr/share/python3/runtime.d/gdebi.rtupdate: 6: py3compile: not found
    error running python rtupdate hook gdebi
    /usr/share/python3/runtime.d/gufw.rtupdate: 6: py3compile: not found
    error running python rtupdate hook gufw
    /usr/share/python3/runtime.d/hplip-data.rtupdate: 6: py3compile: not found
    error running python rtupdate hook hplip-data
    /usr/share/python3/runtime.d/sticky.rtupdate: 6: py3compile: not found
    error running python rtupdate hook sticky
    /usr/share/python3/runtime.d/system-config-printer-common.rtupdate: 6: py3compile: not found
    error running python rtupdate hook system-config-printer-common
    /usr/share/python3/runtime.d/system-config-printer.rtupdate: 6: py3compile: not found
    error running python rtupdate hook system-config-printer
    /usr/share/python3/runtime.d/ubuntu-drivers-common.rtupdate: 6: py3compile: not found
    error running python rtupdate hook ubuntu-drivers-common
    /usr/share/python3/runtime.d/warpinator.rtupdate: 6: py3compile: not found
    error running python rtupdate hook warpinator
    /usr/share/python3/runtime.d/xed.rtupdate: 6: py3compile: not found
    error running python rtupdate hook xed
    /usr/share/python3/runtime.d/xviewer-plugins.rtupdate: 6: py3compile: not found
    error running python rtupdate hook xviewer-plugins
    dpkg: Fehler beim Bearbeiten des Paketes python3 (--configure):
    »installiertes python3-Skript des Paketes post-installation«-Unterprozess gab den Fehlerwert 4 zurück
    Fehler traten auf beim Bearbeiten von:
    python3
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    Code
    sudo dpkg --configure -a

    $ sudo dpkg --configure -a
    python3 (3.10.6-1~22.04.1) wird eingerichtet ...
    running python rtupdate hooks for python3.10...
    /usr/share/python3/runtime.d/cinnamon-common.rtupdate: 6: py3compile: not found
    error running python rtupdate hook cinnamon-common
    /usr/share/python3/runtime.d/cinnamon-screensaver.rtupdate: 6: py3compile: not found
    error running python rtupdate hook cinnamon-screensaver
    /usr/share/python3/runtime.d/cinnamon-session.rtupdate: 6: py3compile: not found
    error running python rtupdate hook cinnamon-session
    /usr/share/python3/runtime.d/gdebi-core.rtupdate: 6: py3compile: not found
    error running python rtupdate hook gdebi-core
    /usr/share/python3/runtime.d/gdebi.rtupdate: 6: py3compile: not found
    error running python rtupdate hook gdebi
    /usr/share/python3/runtime.d/gufw.rtupdate: 6: py3compile: not found
    error running python rtupdate hook gufw
    /usr/share/python3/runtime.d/hplip-data.rtupdate: 6: py3compile: not found
    error running python rtupdate hook hplip-data
    /usr/share/python3/runtime.d/sticky.rtupdate: 6: py3compile: not found
    error running python rtupdate hook sticky
    /usr/share/python3/runtime.d/system-config-printer-common.rtupdate: 6: py3compile: not found
    error running python rtupdate hook system-config-printer-common
    /usr/share/python3/runtime.d/system-config-printer.rtupdate: 6: py3compile: not found
    error running python rtupdate hook system-config-printer
    /usr/share/python3/runtime.d/ubuntu-drivers-common.rtupdate: 6: py3compile: not found
    error running python rtupdate hook ubuntu-drivers-common
    /usr/share/python3/runtime.d/warpinator.rtupdate: 6: py3compile: not found
    error running python rtupdate hook warpinator
    /usr/share/python3/runtime.d/xed.rtupdate: 6: py3compile: not found
    error running python rtupdate hook xed
    /usr/share/python3/runtime.d/xviewer-plugins.rtupdate: 6: py3compile: not found
    error running python rtupdate hook xviewer-plugins
    dpkg: Fehler beim Bearbeiten des Paketes python3 (--configure):
    »installiertes python3-Skript des Paketes post-installation«-Unterprozess gab den Fehlerwert 4 zurück
    Fehler traten auf beim Bearbeiten von:
    python3

    z.B ist bei mir auch "xviewer" installiert ich habe mal versucht dieses über die Anwendungsverwaltung zu löschen, geht nicht - - Fehler

    Wie kann Ich das Reparieren?

    Danke schon mal für Vorschläge.

  • erst sudo -s

    (in das wurzelverzeicnis von root wechseln ,nicht /home etc. z.B mit Befehle cd bis zur ~#)

    dann bist du als root angemeldet.

    mv /usr/bin/py3compile /usr/bin/py3compile.orig

    ln -s $(which true) /usr/bin/py3compile

    Nach dem du den link py3compile.orig erstellt hattest bzw verschoben, sollte dann sofort der

    apt --fix-broken install

    hinter her.

    ~# /usr/bin/py3compile /usr/bin/py3compile.orig
    ~# ln -s $(which true) /usr/bin/py3compile
    ~# apt --fix-broken install

    Mögliche Meldung und Option -s heißt, dass py3compile bei dir womöglich nicht vorhanden ist ,oder du als root nicht angemeldet bist . Nachprüfen bzw bei Nemo, als Systemverwalter in usr/bin nachprüfen. evtl manuell py3compile erstellen. Aber bei apt --fix-brocken install sollte er den neu anlegen.

    Der Xviewer ist ein Standard-Bildbetrachter.

    Die Frage bei dieser Sache ,die ich mir auch stelle. Was war die Ursache im Vorfeld?. Bei meinem Notebook lief das python3-Update anstandslos durch. Der Hauptrechner ist jetzt mit Mint 2 Jahre im Betrieb. "Mögliche" Ursachen,weil ich Libre-Office entfernt habe? rtupdate hook xviewer-plugins? Plugin?

    Edited 4 times, last by DenalB: Schwarze Textfarbe für bessere Lesbarkeit in dunklem Design entfernt (August 29, 2024 at 2:25 PM).

  • Stephan Danke für deine schnelle Antwort, der als Root (sudo -s) ausgeführte Befehl.

    Code
    mv /usr/bin/py3compile /usr/bin/py3compile.orig

    bring folgendes Ergebnis

    Code
    mv: Aufruf von stat für '/usr/bin/py3compile' nicht möglich: Datei oder Verzeichnis nicht gefunden

    obwohl die Datei "py3compile.orig" im Verzeichnis vorhanden ist (letzte Änderung am 08.08.24)

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!