M HYPE SPLASH
// updates

Failure to upgrade Ubuntu due to package removal failure of 'systemd-shim'

By Andrew Adams

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-shim

I have screen-shots but image files are 2MB+.

10

2 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-shim

Then run autopurge to remove the dependencies:

sudo apt autopurge

Then 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.bak

the file which is in the old(xenial)package systemd-shim and in the bionic systemd package is renamed.

Now

sudo dpkg -P systemd-shim

removed the xenial package.

For security

sudo apt install --reinstall systemd
2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy