dpkg-divert: error: rename involves overwriting

When upgrading from Ubuntu 16.04 to 18.04 LTS you may recieve this error. Use the following command to manually move the file

sudo mv /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service.bak

Now run the upgrade process again

sudo apt upgrade

If this does not work, try

sudo apt -f upgrade

Leave a Reply