Failure to upgrade Ubuntu due to package removal failure of 'systemd-shim'
Every time a 'partial upgrade' or 'normal upgrade' of the Ubuntu OS, it is failing every time because of the failure of the systemd-shim package.
Even after I manually execute the following command (per the instructions post-failure) and retry the upgrade process:
apt-get install -f
apt autoremove systemd-shimI have screen-shots but image files are 2MB+.
102 Answers
There is no package called systemd-shim in Bionic (Ubuntu 18.04), so, you are having an obsolete and unsupported package in your system. Better purge the package using dpkg:
sudo dpkg -P --force-all systemd-shimThen run autopurge to remove the dependencies:
sudo apt autopurgeThen reinstall systemd:
sudo apt install --reinstall systemd for non german, try to translate.
Package systemd-shim is since bionic no longer available. with
sudo mv /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service.bakthe file which is in the old(xenial)package systemd-shim and in the bionic systemd package is renamed.
Now
sudo dpkg -P systemd-shimremoved the xenial package.
For security
sudo apt install --reinstall systemd 2