Ich habe aus Versehen Python von meinem Ubuntu (teilweise) gelöscht. Wenn ich jetzt sudo apt update ausführe, kommt das:
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi' E: Sub-process returned an error code
Ich kann noch Updates aus Fremdquellen runterladen.
Jetzt bekomme ich sowas hier als Fehlermeldung:
bash: /usr/lib/command-not-found: cannot execute: required file not found
Wenn ich python --version oder python3 --version ausführe. Gleichzeitig kann ich Python auch nicht neu installieren:
Reinstallation of python3 is not possible, it cannot be downloaded.
Wie kann ich mein System wiederherstellen? Ich habe kein Problem damit, Python zu löschen und neu zu installieren. Ich wollte ursprünglich einen Konflikt auflösen zwischen einer manuell installierten und einer System-Python-Version, hab aber vielleicht das Falsche gelöscht.