This worked for me in quite a few upgrades. Before starting the upgrade to 18.04, still on 16.04:
mv /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service{,.bak} apt purge systemd-shim It does not work in the opposite order! If you try that way, apt purge will complain about the service file. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1773859 Title: upgrades to 18.04 fail To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1773859/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs