Wie Sie Sie wiederherstellen, nachdem versehentlich apt-get remove python

Yeah. Ich habe dies getan. Es war dumm.

Ich nicht, dass es ziehen Ihre Abhängigkeiten mit ihm, wollte nur zum installieren von python 2 und 3 von Grund auf neu (wegen dieses Problems: https://askubuntu.com/questions/897355/how-to-change-default-idle-for-python).

Nun, ich kann immer noch meine terminal, überprüft diese Antworten:

https://askubuntu.com/questions/741265/apt-get-remove-python-150mb-apt-get-install-python-687kb

https://askubuntu.com/questions/437644/i-accidentaly-did-sudo-apt-get-remove-python

Jedoch nach dem ausführen sudo apt-get install ubuntu-desktop bekomme ich diese Fehler:

Setting up python-ldb (2:1.1.24-1ubuntu3) ...
/var/lib/dpkg/info/python-ldb.postinst: 6: /var/lib/dpkg/info/python-ldb.postinst: pycompile: not found
dpkg: error processing package python-ldb (--configure):
 subprocess installed post-installation script returned error exit status 127
No apport report written because MaxReports is reached already
                                                              Setting up python-tdb (1.3.8-2) ...
/var/lib/dpkg/info/python-tdb.postinst: 6: /var/lib/dpkg/info/python-tdb.postinst: pycompile: not found
dpkg: error processing package python-tdb (--configure):
 subprocess installed post-installation script returned error exit status 127
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of python-samba:
 python-samba depends on python-crypto; however:
  Package python-crypto is not configured yet.
 python-samba depends on python-ldb (>= 1.1.2~); however:
  Package python-ldb is not configured yet.
 python-samba depends on python-tdb; however:
  Package python-tdb is not configured yet.

dpkg: error processing package python-samba (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              Processing triggers for libc-bin (2.23-0ubuntu7) ...

Errors were encountered while processing:
 mercurial-common
 python-crypto
 python-dnspython
 python-ldb
 python-tdb
 python-samba
E: Sub-process /usr/bin/dpkg returned an error code (1)

Jedem apt-get install-Befehl löst diese.

Gibt es eine Möglichkeit zum wiederherstellen dieser Abhängigkeiten?

  • Versuchen Sie es mit "apt-get install -f" vielleicht beheben die gebrochenen Abhängigkeiten
  • Nein, leider wirft es das gleiche 🙁
InformationsquelleAutor MattSom | 2017-03-28
Schreibe einen Kommentar