0

Since my printer didn't work after the upgrade to Ubuntu 24.04, but worked before with 22.04, I tried to install hplib manually: https://developers.hp.com/hp-linux-imaging-and-printing The process hang in between, so I killed it. Since this happened, some parts of the system seem to be broken. Especially, I cannot open the terminal in the regular Gnome UI (if I click on the link, nothing happens), and if I go to the terminal using Ctrl+Alt+F3 etc., apt doesn't work correctly.

If I try to upgrade or install anything, it says:

Paketlisten werden gelesen…
Abhängigkeitsbaum wird aufgebaut…
Statusinformationen werden eingelesen…
Probieren Sie »apt --fix-broken install«, um dies zu korrigieren.
Die folgenden Pakete haben unerfüllte Abhängigkeiten:
 libpython3.12-stdlib : Hängt ab von: libpython3.12-minimal (= 3.12.7-1+jammy1) ist aber nicht installiert
 python3-minimal : Hängt ab von (vorher): python3.12-minimal (>= 3.12.3-0~) ist aber nicht installiert
 python3.12 : Hängt ab von: python3.12-minimal (= 3.12.7-1+jammy1) ist aber nicht installiert
E: Unerfüllte Abhängigkeiten. Versuchen Sie »apt --fix-broken install« ohne Angabe eines Pakets (oder geben Sie eine Lösung an).

When I try to do sudo apt --fix-broken install, the following output comes:

Abhängigkeiten werden korrigiert … fehlgeschlagen.
Die folgenden Pakete haben unerfüllte Abhängigkeiten:
 libpython3.12-stdlib : Hängt ab von: libpython3.12-minimal (= 3.12.7-1+jammy1) ist aber nicht installiert
 python3-minimal : Hängt ab von (vorher): python3.12-minimal (>= 3.12.3-0~) ist aber nicht installiert
 python3.12 : Hängt ab von: python3.12-minimal (= 3.12.7-1+jammy1) ist aber nicht installiert
E: Fehler: Unterbrechungen durch pkgProblemResolver::Resolve hervorgerufen; dies könnte durch zurückgehaltene Pakete verursacht worden sein.
E: Abhängigkeiten konnten nicht korrigiert werden.

sudo apt remove libpython3.12-stdlib python3-minimal python3.12 yields the same output, so basically, I cannot remove these packages and I also cannot install them.

Installing them yields basically the same, but says python3-minimal was manually installed:

sudo apt install libpython3.12-stdlib python3-minimal python3.12
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
libpython3.12-stdlib ist schon die neueste Version (3.12.7-1+jammy1).
python3-minimal ist schon die neueste Version (3.12.3-0ubuntu2).
python3-minimal wurde als manuell installiert festgelegt.
python3.12 ist schon die neueste Version (3.12.7-1+jammy1).
Probieren Sie »apt --fix-broken install«, um dies zu korrigieren.
Die folgenden Pakete haben unerfüllte Abhängigkeiten:
 libpython3.12-stdlib : Hängt ab von: libpython3.12-minimal (= 3.12.7-1+jammy1) soll aber nicht installiert werden
 python3-minimal : Hängt ab von (vorher): python3.12-minimal (>= 3.12.3-0~) soll aber nicht installiert werden
 python3.12 : Hängt ab von: python3.12-minimal (= 3.12.7-1+jammy1) soll aber nicht installiert werden
E: Unerfüllte Abhängigkeiten. Versuchen Sie »apt --fix-broken install« ohne Angabe eines Pakets (oder geben Sie eine Lösung an).

This is a bit weird: On the one hand, it tells me python 3.12-minimal is installed, on the other hand, it tells me python3.12-minimal shouldn't be installed.

It seems like there has been a similar problem with python3.12 in Ubuntu 22.04: Jammy - Upgrade python fail but running sudo dpkg --force-depends --purge libpython3.12-minimal python3.12-minimal doesn't work as well (it says the packages aren't installed). Also (from "The following packages have been kept back:" Why and how do I solve it?) sudo apt-get --with-new-pkgs upgrade and installing the packages doesn't change anything.

Is there any way to fix the installation state of these packages?

0 Answers0