
Nach dem Upgrade von 16.04 auf 18.04 kam ganz am Ende folgende Meldung:
The upgrade has completed but there were errors during the upgrade
process.
To continue please press [ENTER]
gedrückt [ENTER]
Wenn ich jetzt apt update / apt upgrade ausführe, erhalte ich die folgende Meldung:
The following packages have unmet dependencies:
systemd : Depends: libsystemd0 (= 229-4ubuntu21.31) but 237-3ubuntu10.48 is installed
Hereinschauen :https://packages.ubuntu.com/bionic/libs/ Es zeigt jedenfalls Folgendes für libsystemd0 für 18.04. Ich bin mir also nicht sicher, warum das System glaubt, die Abhängigkeit sollte 229-4ubuntu21.31 sein.
libsystemd0 (237-3ubuntu10.38 [amd64, i386], 237-3ubuntu10 [arm64, armhf, ppc64el, s390x]) [security]
systemd utility library
Am Ende von apt upgrade heißt es außerdem:
You might want to run 'apt-get -f install' to correct these.
Wenn ich dies ausführe, erhalte ich:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
cgmanager libargon2-0 libcryptsetup12 libgd3 libip4tc0 libjson-c3 libkadm5clnt-mit9 libluajit-5.1-2 libluajit-5.1-common libvpx3 libxpm4 nginx-common
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
upstart
Suggested packages:
graphviz upstart-monitor
The following packages will be REMOVED:
init libpam-systemd systemd systemd-shim systemd-sysv ubuntu-standard
The following NEW packages will be installed:
upstart
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
init systemd-sysv (due to init)
0 upgraded, 1 newly installed, 6 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/392 kB of archives.
After this operation, 18.1 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
Offensichtlich ist etwas ganz Schreckliches passiert.
Ich bin hier etwas überfordert und wäre für einige Hinweise/weitere Schritte dankbar.
Danke
Hinzufügen: Ausgabe wie von NOrbert angefordert
nexargi@server-02:~$ apt-cache policy systemd libsystemd0 init systemd-sysv
systemd:
Installed: 229-4ubuntu21.31
Candidate: 229-4ubuntu21.31
Version table:
*** 229-4ubuntu21.31 500
500 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
100 /var/lib/dpkg/status
229-4ubuntu21.27 500
500 http://us.archive.ubuntu.com/ubuntu xenial-security/main amd64 Packages
229-4ubuntu4 500
500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
libsystemd0:
Installed: 237-3ubuntu10.48
Candidate: 237-3ubuntu10.48
Version table:
*** 237-3ubuntu10.48 100
100 /var/lib/dpkg/status
229-4ubuntu21.31 500
500 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
229-4ubuntu21.27 500
500 http://us.archive.ubuntu.com/ubuntu xenial-security/main amd64 Packages
229-4ubuntu4 500
500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
init:
Installed: 1.29ubuntu4
Candidate: 1.29ubuntu4
Version table:
*** 1.29ubuntu4 500
500 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
100 /var/lib/dpkg/status
1.29ubuntu1 500
500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
systemd-sysv:
Installed: 229-4ubuntu21.31
Candidate: 229-4ubuntu21.31
Version table:
*** 229-4ubuntu21.31 500
500 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
100 /var/lib/dpkg/status
229-4ubuntu21.27 500
500 http://us.archive.ubuntu.com/ubuntu xenial-security/main amd64 Packages
229-4ubuntu4 500
500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
Bearbeitet, um Links zu Pastebin aufzunehmen, wie von NOrbert angefordert: @NOrbert, bitte beachten Sie, dass diese unmittelbar nach der Wiederherstellung von 16.04 erstellt wurden. D. h. sie stellen den Zustand von 16.04 VOR jedem Release-Upgrade dar.
grep -r ^deb /etc/apt --include=*.list https://pastebin.com/85qJeYws
Apt-Cache-Richtlinie https://pastebin.com/q8S47v1e
dpkg -l https://pastebin.com/Zp999iuF
Antwort1
Sie haben eine neuere Version libsystemd0
vonvielleicht irgendwo. Für ein Downgrade verwenden Sie den folgenden Befehl:
sudo apt-get install libsystemd0=229-4ubuntu21.31
und installieren Sie dann Upgrades auf 16.04 LTS durch
sudo apt-get update
sudo apt-get install -f
sudo dpkg --configure -a
sudo apt-get dist-upgrade # to get newer dependencies
Um für eventuelle zukünftige Probleme ein gutes Werkzeug zu haben, installieren Sie Aptitude von
sudo apt-get install aptitude
Starten Sie anschließend den Systemneustart und starten Sie das Systemupgrade auf 18.04 LTS wie gewohnt.