16.04 to 18.04.1 ubgrade fails because of diversion of org.freedesktop.systemd1.service

Bug #1787540 reported by MarcS
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
systemd-shim (Ubuntu)
New
Undecided
Unassigned

Bug Description

I ran do-release-upgrade from a terminal. The process eventually failed because of "too many errors". The root cause appears to be this:

Removing systemd-shim (9-1bzr4ubuntu1) ...
Removing 'diversion of /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service to /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service.systemd by systemd-shim'
dpkg-divert: error: rename involves overwriting '/usr/share/dbus-1/system-services/org.freedesktop.systemd1.service' with
  different file '/usr/share/dbus-1/system-services/org.freedesktop.systemd1.service.systemd', not allowed

I appear to have worked around this by manually removing /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service, purging systemd-shim via `dpkg -P` and then doing `apt-get install -f`, which completed without errors. After that, another `apt-get dist-upgrade` was apparently enough to complete the upgrade.

Revision history for this message
Brian Murray (brian-murray) wrote :

Could you please add the log files found in /var/log/dist-upgrade to your bug report? Thanks in advance.

Changed in ubuntu-release-upgrader (Ubuntu):
status: New → Incomplete
Revision history for this message
MarcS (marc-schmitzer) wrote :
Revision history for this message
MarcS (marc-schmitzer) wrote :
Revision history for this message
MarcS (marc-schmitzer) wrote :
Revision history for this message
MarcS (marc-schmitzer) wrote :
Revision history for this message
MarcS (marc-schmitzer) wrote :
description: updated
affects: ubuntu-release-upgrader (Ubuntu) → systemd-shim (Ubuntu)
Changed in systemd-shim (Ubuntu):
status: Incomplete → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.