systemd-shim was not installed in 16.10 and now cannot purge or remove

Bug #1593924 reported by saul
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
systemd-shim (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

spsanchez@spsanchez-OEM:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
  systemd-shim
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 71.7 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 632222 files and directories currently installed.)
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
dpkg: error processing package systemd-shim (--remove):
 subprocess installed post-removal script returned error exit status 2
Errors were encountered while processing:
 systemd-shim
E: Sub-process /usr/bin/dpkg returned an error code (1)
spsanchez@spsanchez-OEM:~$

Tags: systemd-shim
Revision history for this message
saul (sanhome1) wrote :

i am not able to update, upgrade, install the nvidia drivers. This error has me dead in the water.
sudo apt-get install --reinstall systemd-shim
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reinstallation of systemd-shim is not possible, it cannot be downloaded.
The following packages will be REMOVED:
  systemd-shim
0 upgraded, 0 newly installed, 1 to remove and 11 not upgraded.
1 not fully installed or removed.
After this operation, 71.7 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 631675 files and directories currently installed.)
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
dpkg: error processing package systemd-shim (--remove):
 subprocess installed post-removal script returned error exit status 2
Errors were encountered while processing:
 systemd-shim
E: Sub-process /usr/bin/dpkg returned an error code (1)

Tyler Hicks (tyhicks)
information type: Private Security → Public
Revision history for this message
dino99 (9d9) wrote :

There is no more systemd-shim package into yakkety. You may need to clean your system et purge the orphans (with deborphan) or run bleachbit as root (with clear understanding of the option you activate)

Changed in libjpeg-turbo (Ubuntu):
status: New → Invalid
Revision history for this message
Albert De Wint (berre) wrote :

neither bleachbit nor deborphan can be installed:

(Database wordt ingelezen ... 268529 bestanden en mappen momenteel geïnstalleerd.)
systemd-shim (9-1bzr4ubuntu1) wordt verwijderd ...
'omleiding van /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service naar /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service.systemd door systemd-shim' wordt verwijderd
dpkg-divert: fout: hernoemen impliceert overschrijven van '/usr/share/dbus-1/system-services/org.freedesktop.systemd1.service' met
  ander bestand '/usr/share/dbus-1/system-services/org.freedesktop.systemd1.service.systemd'; niet toegelaten
dpkg: fout bij verwerken van pakket systemd-shim (--remove):
 subproces post-removal script geïnstalleerd gaf een foutwaarde 2 terug
Fouten gevonden tijdens verwerken van:
 systemd-shim
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Julien-Charles Lévesque (jclevesque) wrote :

To me this seems to be the problem :

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

Why does the package try to do this if it is not allowed?

Kees Cook (kees)
affects: libjpeg-turbo (Ubuntu) → systemd-shim (Ubuntu)
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.