I got stuck in this situation as well, and I was able to manually "unstick" things like this:
```sudo apt install -f -y console-setup-linux keyboard-configuration console-setup systemd libpam-systemd```
I got stuck in this situation as well, and I was able to manually "unstick" things like this:
```sudo apt install -f -y console-setup-linux keyboard- configuration console-setup systemd libpam-systemd```