mises à jour impossibles- problèmes avec systemed-shim. et échec de "sudo apt-get install -f"

Asked by MENARD

les mises à jour ne se font pas. Un message m'informe d'utiliser d'abord le "gestionnaire de paquets synaptic" ou de lancer "sudo apt-get install -f" dans un terminal. rien ne fonctionne.
nstallArchives() failed: (Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 1186843 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):
 installed systemd-shim package post-removal script subprocess returned error exit status 2
Errors were encountered while processing:
 systemd-shim

Question information

Language:
French Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
MENARD
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

For diagnostic purposes please provide the output that you receive for the commands (to be executed in a terminal window):

uname -a
lsb_release -crid
sudo dpkg --audit
apt-cache policy systemd-shim

Revision history for this message
MENARD (rene06-menard) said :
#2

md1.service.systemd », ce n'est pas autorisé
dpkg: erreur de traitement du paquet systemd-shim (--remove) :
 installed systemd-shim package post-removal script subprocess returned error exit status 2
Des erreurs ont été rencontrées pendant l'exécution :
 systemd-shim
E: Sub-process /usr/bin/dpkg returned an error code (1)
menard@menard-System-Product-Name:~$
menard@menard-System-Product-Name:~$ uname -a
Linux menard-System-Product-Name 4.15.0-99-generic #100-Ubuntu SMP Wed Apr 22 20:32:56 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
menard@menard-System-Product-Name:~$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
menard@menard-System-Product-Name:~$ sudo dpkg --audit
Les paquets suivants sont à demi installés à cause de problèmes survenus
lors de l'installation. L'installation peut certainement être achevée en
réessayant ; les paquets peuvent être supprimés en utilisant dselect ou
dpkg --remove :
 systemd-shim shim for systemd

menard@menard-System-Product-Name:~$ apt-cache policy systemd-shim

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

What is the output of the commands

apt-cache policy systemd-shim
dpkg-divert --list

Revision history for this message
MENARD (rene06-menard) said :
#4

menard@menard-System-Product-Name:~$ sudo apt-get install -f
[sudo] Mot de passe de menard :
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
  dleyna-server efibootmgr evolution-data-server-online-accounts fonts-stix
  g++-5 gcc-5-base:i386 gcc-6-base gcc-6-base:i386 gir1.2-geocodeglib-1.0 gksu
  imagemagick-common kactivities-bin kactivitymanagerd kate-data katepart
  lib32z1 libamd2.4.1 libappstream3 libass5 libavcodec-ffmpeg-extra56
  libavdevice-ffmpeg56 libavfilter-ffmpeg5 libavformat-ffmpeg56
  libavresample-ffmpeg2 libavutil-ffmpeg54 libbabeltrace-ctf1 libbind9-140
  libblas-common libbluray1 libboost-date-time1.58.0 libboost-filesystem1.58.0
  libboost-iostreams1.58.0 libboost-system1.58.0 libc6-i386 libcamd2.4.1
  libcamel-1.2-54 libcapnp-0.5.3 libcapnp-0.6.1 libccolamd2.9.1
  libcholmod3.0.6 libchromaprint0 libclamav7 libcolamd2.9.1 libcomerr2:i386
  libdata-alias-perl libdirectfb-1.2-9 libdleyna-connector-dbus-1.0-1
  libdleyna-core-1.0-3 libdns-export162 libdns162 libebook-1.2-16
  libedataserver-1.2-21 libedataserverui-1.2-1 libefivar0 libfcitx-gclient0
  libfwup0 libfwup1 libfwupd1 libgfortran3 libgksu2-0 libglew1.13
  libgnome-desktop-3-12 libgom-1.0-common libgrilo-0.2-1 libgtkspell3-3-0
  libgtop-2.0-10 libgupnp-av-1.0-2 libgupnp-dlna-2.0-3 libgweather-3-6
  libhardware2 libhud2 libhybris libhybris-common1 libical1a libidn11:i386
  libisc-export160 libisc160 libisccc140 libisccfg140 libiso9660-8
  libkatepartinterfaces4 libkf5activities5 libkf5calendarevents5
  libkf5gpgmepp5 libkf5kdelibs4support-data libkf5kdelibs4support5
  libkf5kdelibs4support5-bin libkf5plasma5 libkf5plasmaquick5 libkf5plotting5
  liblivemedia50 libllvm3.6v5 libllvm4.0 libllvm4.0:i386 libllvm5.0
  libllvm5.0:i386 libllvm6.0 libllvm6.0:i386 libllvm7 libllvm7:i386 libllvm8
  libllvm8:i386 liblouis9 liblouisutdml6 liblwres141 libmedia1 libmimic0
  libmirclient9 libmircommon7 libmircore1 libmirprotobuf3 libnma-common
  libopencv-calib3d2.4v5 libopencv-contrib2.4v5 libopencv-core2.4v5
  libopencv-features2d2.4v5 libopencv-flann2.4v5 libopencv-highgui2.4v5
  libopencv-imgproc2.4v5 libopencv-legacy2.4v5 libopencv-ml2.4v5
  libopencv-objdetect2.4v5 libopencv-video2.4v5 libopenjpeg5 liborcus-0.10-0v5
  libpcre16-3 libpng12-0:i386 libpoppler58 libpostproc-ffmpeg53 libprocps4
  libprotobuf-lite9v5 libprotobuf9v5 libprotoc9v5 libpython3.5
  libpython3.5-minimal libpython3.5-stdlib libqmi-glib1 libqpdf17
  libqt5feedback5 libqt5multimedia5 libqt5organizer5 libraw15
  librhythmbox-core9 librpm3 librpmbuild3 librpmio3 librpmsign3
  libschroedinger-1.0-0 libsodium18 libsox2 libsrtp0 libstdc++-5-dev
  libsuitesparseconfig4.4.6 libswresample-ffmpeg1 libswscale-ffmpeg3
  libtracker-sparql-1.0-0 libtxc-dxtn-s2tc0:i386 libumfpack5.7.1
  libunity-action-qt1 libva-drm1 libva-x11-1 libva1 libvpx3 libwebp5
  libwebpdemux1 libwebpmux1 libwebrtc-audio-processing-0 libwildmidi1
  libx264-148 libx265-79 libxapian-1.3-5 libxapian22v5 libxcb-composite0
  libxcb-damage0 libxtables11 linux-headers-4.15.0-43
  linux-headers-4.15.0-43-generic linux-headers-4.15.0-44
  linux-headers-4.15.0-44-generic linux-headers-4.15.0-45
  linux-headers-4.15.0-45-generic linux-headers-4.15.0-46
  linux-headers-4.15.0-46-generic linux-headers-4.15.0-47
  linux-headers-4.15.0-47-generic linux-headers-4.15.0-48
  linux-headers-4.15.0-48-generic linux-headers-4.15.0-50
  linux-headers-4.15.0-50-generic linux-headers-4.15.0-51
  linux-headers-4.15.0-51-generic linux-headers-4.15.0-52
  linux-headers-4.15.0-52-generic linux-headers-4.15.0-54
  linux-headers-4.15.0-54-generic linux-headers-4.15.0-55
  linux-headers-4.15.0-55-generic linux-headers-4.15.0-58
  linux-headers-4.15.0-58-generic linux-headers-4.15.0-60
  linux-headers-4.15.0-60-generic linux-headers-4.15.0-62
  linux-headers-4.15.0-62-generic linux-headers-4.15.0-64
  linux-headers-4.15.0-64-generic linux-headers-4.15.0-65
  linux-headers-4.15.0-65-generic linux-headers-4.15.0-66
  linux-headers-4.15.0-66-generic linux-headers-4.15.0-70
  linux-headers-4.15.0-70-generic linux-headers-4.15.0-72
  linux-headers-4.15.0-72-generic linux-headers-4.15.0-74
  linux-headers-4.15.0-74-generic linux-headers-4.15.0-76
  linux-headers-4.15.0-76-generic linux-headers-4.15.0-88
  linux-headers-4.15.0-88-generic linux-headers-4.15.0-91
  linux-headers-4.15.0-91-generic linux-headers-4.4.0-140
  linux-headers-4.4.0-140-generic linux-headers-4.4.0-141
  linux-headers-4.4.0-141-generic linux-image-4.15.0-43-generic
  linux-image-4.15.0-44-generic linux-image-4.15.0-45-generic
  linux-image-4.15.0-46-generic linux-image-4.15.0-47-generic
  linux-image-4.15.0-48-generic linux-image-4.15.0-50-generic
  linux-image-4.15.0-51-generic linux-image-4.15.0-52-generic
  linux-image-4.15.0-54-generic linux-image-4.15.0-55-generic
  linux-image-4.15.0-58-generic linux-image-4.15.0-60-generic
  linux-image-4.15.0-62-generic linux-image-4.15.0-64-generic
  linux-image-4.15.0-65-generic linux-image-4.15.0-66-generic
  linux-image-4.15.0-70-generic linux-image-4.15.0-72-generic
  linux-image-4.15.0-74-generic linux-image-4.15.0-76-generic
  linux-image-4.15.0-88-generic linux-image-4.15.0-91-generic
  linux-image-4.4.0-140-generic linux-image-4.4.0-141-generic
  linux-image-extra-4.4.0-140-generic linux-image-extra-4.4.0-141-generic
  linux-modules-4.15.0-43-generic linux-modules-4.15.0-44-generic
  linux-modules-4.15.0-45-generic linux-modules-4.15.0-46-generic
  linux-modules-4.15.0-47-generic linux-modules-4.15.0-48-generic
  linux-modules-4.15.0-50-generic linux-modules-4.15.0-51-generic
  linux-modules-4.15.0-52-generic linux-modules-4.15.0-54-generic
  linux-modules-4.15.0-55-generic linux-modules-4.15.0-58-generic
  linux-modules-4.15.0-60-generic linux-modules-4.15.0-62-generic
  linux-modules-4.15.0-64-generic linux-modules-4.15.0-65-generic
  linux-modules-4.15.0-66-generic linux-modules-4.15.0-70-generic
  linux-modules-4.15.0-72-generic linux-modules-4.15.0-74-generic
  linux-modules-4.15.0-76-generic linux-modules-4.15.0-88-generic
  linux-modules-4.15.0-91-generic linux-modules-extra-4.15.0-43-generic
  linux-modules-extra-4.15.0-44-generic linux-modules-extra-4.15.0-45-generic
  linux-modules-extra-4.15.0-46-generic linux-modules-extra-4.15.0-47-generic
  linux-modules-extra-4.15.0-48-generic linux-modules-extra-4.15.0-50-generic
  linux-modules-extra-4.15.0-51-generic linux-modules-extra-4.15.0-52-generic
  linux-modules-extra-4.15.0-54-generic linux-modules-extra-4.15.0-55-generic
  linux-modules-extra-4.15.0-58-generic linux-modules-extra-4.15.0-60-generic
  linux-modules-extra-4.15.0-62-generic linux-modules-extra-4.15.0-64-generic
  linux-modules-extra-4.15.0-65-generic linux-modules-extra-4.15.0-66-generic
  linux-modules-extra-4.15.0-70-generic linux-modules-extra-4.15.0-72-generic
  linux-modules-extra-4.15.0-74-generic linux-modules-extra-4.15.0-76-generic
  linux-modules-extra-4.15.0-88-generic linux-modules-extra-4.15.0-91-generic
  oxygen5-icon-theme plainbox-provider-checkbox
  plainbox-provider-resource-generic plasma-framework python-ndg-httpsclient
  python3-pyasn1 python3.5 python3.5-minimal qml-module-org-kde-activities
  qml-module-org-kde-kconfig qml-module-org-kde-kquickcontrols
  qml-module-qt-labs-folderlistmodel qml-module-qt-labs-settings
  qml-module-qtfeedback qml-module-qtquick-dialogs
  qml-module-qtquick-privatewidgets qml-module-qtwebkit
  qml-module-ubuntu-onlineaccounts qml-module-ubuntu-performancemetrics
  qtdeclarative5-accounts-plugin qtdeclarative5-qtquick2-plugin
  qtdeclarative5-unity-action-plugin rename s-nail snapd-login-service
  suru-icon-theme ubuntu-mobile-icons ubuntu-ui-toolkit-theme
  ubuntu-web-launchers
Veuillez utiliser « sudo apt autoremove » pour les supprimer.
Les paquets suivants seront ENLEVÉS :
  systemd-shim
0 mis à jour, 0 nouvellement installés, 1 à enlever et 0 non mis à jour.
1 partiellement installés ou enlevés.
Après cette opération, 71,7 ko d'espace disque seront libérés.
Souhaitez-vous continuer ? [O/n] o
(Lecture de la base de données... 1186843 fichiers et répertoires déjà installés.)
Suppression de systemd-shim (9-1bzr4ubuntu1) ...
Suppression de « détournement de /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service en /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service.systemd par systemd-shim »
dpkg-divert: erreur: le renommage implique l'écrasement de « /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service » avec
  un fichier différent « /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service.systemd », ce n'est pas autorisé
dpkg: erreur de traitement du paquet systemd-shim (--remove) :
 installed systemd-shim package post-removal script subprocess returned error exit status 2
Des erreurs ont été rencontrées pendant l'exécution :
 systemd-shim
E: Sub-process /usr/bin/dpkg returned an error code (1)
menard@menard-System-Product-Name:~$
menard@menard-System-Product-Name:~$ uname -a
Linux menard-System-Product-Name 4.15.0-99-generic #100-Ubuntu SMP Wed Apr 22 20:32:56 UTC 2020 x86_64 x86_64 x86_64

GNU/Linux
menard@menard-System-Product-Name:~$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
menard@menard-System-Product-Name:~$ sudo dpkg --audit
Les paquets suivants sont à demi installés à cause de problèmes survenus
lors de l'installation. L'installation peut certainement être achevée en
réessayant ; les paquets peuvent être supprimés en utilisant dselect ou
dpkg --remove :
 systemd-shim shim for systemd

menard@menard-System-Product-Name:~$ apt-cache policy systemd-shim

Revision history for this message
MENARD (rene06-menard) said :
#5

menard@menard-System-Product-Name:~$ apt-cache policy systemd-shim
systemd-shim:
  Installé : 9-1bzr4ubuntu1
  Candidat : 9-1bzr4ubuntu1
 Table de version :
 *** 9-1bzr4ubuntu1 100
        100 /var/lib/dpkg/status
menard@menard-System-Product-Name:~$ politique apt-cache systemd-shim
politique : commande introuvable
menard@menard-System-Product-Name:~$ dpkg-divert --list

pardonnez-moi, je ne suis plus très jeune et connais très peu linux

Revision history for this message
Manfred Hampl (m-hampl) said :
#6

No problem.
Just execute this command

dpkg-divert --list

and press the "enter" key. Afterwards copy/paste the output that you receive into the question document.

Revision history for this message
MENARD (rene06-menard) said :
#7

menard@menard-System-Product-Name:~$ dpkg-divert --list
détournement de /usr/share/dbus-1/services/org.freedesktop.Notifications.service en /usr/share/dbus-1/services/org.freedesktop.Notifications.service.notify-osd par notify-osd
détournement de /usr/share/dict/words en /usr/share/dict/words.pre-dictionaries-common par dictionaries-common
détournement de /usr/share/man/man1/sh.1.gz en /usr/share/man/man1/sh.distrib.1.gz par dash
détournement de /usr/lib/libreoffice/share/basic/script.xlc en /usr/lib/libreoffice/share/basic/script.xlc.noaccess par libreoffice-base
détournement de /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service en /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service.systemd par systemd-shim
détournement de /usr/share/aisleriot/cards/bonded.svg en /usr/share/aisleriot/cards/bonded.svg.unbranded par branding-ubuntu
détournement de /usr/lib/libreoffice/share/basic/dialog.xlc en /usr/lib/libreoffice/share/basic/dialog.xlc.noaccess par libreoffice-base
détournement de /usr/share/gnome-mahjongg/themes/postmodern.svg en /usr/share/gnome-mahjongg/themes/postmodern.svg.unbranded par branding-ubuntu
détournement de /bin/sh en /bin/sh.distrib par dash
détournement de /usr/share/initramfs-tools/hooks/klibc en /usr/share/initramfs-tools/hooks/klibc^i-t par klibc-utils
détournement de /usr/share/aisleriot/pixmaps/baize.png en /usr/share/aisleriot/pixmaps/baize.png.unbranded par branding-ubuntu
détournement de /usr/share/aisleriot/pixmaps/slot.svg en /usr/share/aisleriot/pixmaps/slot.svg.unbranded par branding-ubuntu
menard@menard-System-Product-Name:~$ dpkg-divert --list
détournement de /usr/share/dbus-1/services/org.freedesktop.Notifications.service en /usr/share/dbus-1/services/org.freedesktop.Notifications.service.notify-osd par notify-osd
détournement de /usr/share/dict/words en /usr/share/dict/words.pre-dictionaries-common par dictionaries-common
détournement de /usr/share/man/man1/sh.1.gz en /usr/share/man/man1/sh.distrib.1.gz par dash
détournement de /usr/lib/libreoffice/share/basic/script.xlc en /usr/lib/libreoffice/share/basic/script.xlc.noaccess par libreoffice-base
détournement de /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service en /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service.systemd par systemd-shim
détournement de /usr/share/aisleriot/cards/bonded.svg en /usr/share/aisleriot/cards/bonded.svg.unbranded par branding-ubuntu
détournement de /usr/lib/libreoffice/share/basic/dialog.xlc en /usr/lib/libreoffice/share/basic/dialog.xlc.noaccess par libreoffice-base
détournement de /usr/share/gnome-mahjongg/themes/postmodern.svg en /usr/share/gnome-mahjongg/themes/postmodern.svg.unbranded par branding-ubuntu
détournement de /bin/sh en /bin/sh.distrib par dash
détournement de /usr/share/initramfs-tools/hooks/klibc en /usr/share/initramfs-tools/hooks/klibc^i-t par klibc-utils
détournement de /usr/share/aisleriot/pixmaps/baize.png en /usr/share/aisleriot/pixmaps/baize.png.unbranded par branding-ubuntu
détournement de /usr/share/aisleriot/pixmaps/slot.svg en /usr/share/aisleriot/pixmaps/slot.svg.unbranded par branding-ubuntu
menard@menard-System-Product-Name:~$

Revision history for this message
Manfred Hampl (m-hampl) said :
#8

What output do you receive for the command

sudo dpkg-divert --remove /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service.systemd

Revision history for this message
MENARD (rene06-menard) said :
#9

excusez-moi, êtes-vous toujours là?

Revision history for this message
MENARD (rene06-menard) said :
#10

menard@menard-System-Product-Name:~$ sudo dpkg-divert --remove / usr / share / dbus-1 / system- services / org.freedesktop .systemd1. un service. systemd
[sudo] Mot de passe de menard :
dpkg-divert: erreur: --remove demande un seul paramètre

Utiliser --help pour de l'aide sur le détournement de fichiers.
menard@menard-System-Product-Name:~$ sudo dpkg-divert --remove / usr / share / dbus-1 / system- services / org.freedesktop .systemd1. un service. systemd
dpkg-divert: erreur: --remove demande un seul paramètre

Utiliser --help pour de l'aide sur le détournement de fichiers.
menard@menard-System-Product-Name:~$

Revision history for this message
MENARD (rene06-menard) said :
#11

désolé, je n'ai pas bougé de devant mon ordi, mais je n'ai pas vu votre demande #8 s'afficher. Je dois manquer quelque chose pour que ça se fasse.

Revision history for this message
MENARD (rene06-menard) said :
#12

je prends beaucoup de votre temps. il se fait tard, je vous propose de nous recontacter demain.
Merci pour tous vos efforts

Revision history for this message
MENARD (rene06-menard) said :
#13

bonjour

Revision history for this message
MENARD (rene06-menard) said :
#14

merci encore pour votre aide, mon fils me propose son aide, je vais donc lui confier mon problème.

Revision history for this message
MENARD (rene06-menard) said :
#15

merci encore pour votre aide, mon fils me propose son aide, je vais donc lui confier mon problème.