systemd-shim erro após a atualização de 16.04 para 16.10

9

Eu recebi um erro estranho após a atualização do Ubuntu 16.04 para 16.10.

O Atualizador de Software me sugere uma atualização parcial:

Could not install 'systemd-shim'

The upgrade will continue but the 'systemd-shim' package may not be in a working state. Please consider submitting a bug report about it.

subprocess installed post-removal script returned error exit status 2

O sudo apt-get update termina sem nenhum erro.

sudo apt-get remove:

The following packages will be REMOVED:
  systemd-shim
0 to upgrade, 0 to newly install, 1 to remove and 0 not to upgrade.
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 ... 1451244 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)

Por favor, ajude-me a corrigir esse erro. Obrigado.

    
por zappee 17.10.2016 / 23:03

1 resposta

23
  1. Usando o comando do terminal

    sudo mv <original file name> <new file name>
    

    renomeie /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service para /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service.bak .

  2. Continue para executar sudo apt upgrade novamente.

Espero que não apareçam mais erros systemd-shim .

Renomeie o arquivo para o que era se você tiver algum problema.

    
por CrazyLemon 18.10.2016 / 11:09