web-dev-qa-db-fra.com

problèmes de dépendance, lors de la mise à jour

J'ai un problème avec les dépendances et je regrette maintenant d'avoir installé Ubuntu en allemand ... J'espère que quelqu'un pourra m'aider de toute façon: chaque fois que j'essaie de mettre à jour quelque chose, je reçois plusieurs messages d'erreur de dépendance, j'ai essayé ce qui suit :

Sudo apt-get clean && Sudo apt-get update && Sudo apt-get dist-upgrade

J'obtiens plusieurs messages comme celui-ci:

> libgl1-mesa-glx:AMD64 (10.1.3-0ubuntu0.5) wird eingerichtet ...
> update-alternatives: Warnung: Neuinstallation der Alternative
> /usr/lib/x86_64-linux-gnu/mesa/ld.so.conf ist erzwungen, weil
> Linkgruppe x86_64-linux-gnu_gl_conf defekt ist update-alternatives:
> Fehler: »/etc/ATI« kann nicht entfernt werden: Ist ein Verzeichnis
> dpkg: Fehler beim Bearbeiten des Paketes libgl1-mesa-glx:AMD64
> (--configure):  Unterprozess installiertes post-installation-Skript
> gab den Fehlerwert 2 zurück dpkg: Abhängigkeitsprobleme verhindern
> Konfiguration von libreoffice-core:  libreoffice-core hängt ab von
> libgl1-mesa-glx | libgl1; aber:   Paket libgl1-mesa-glx:AMD64 ist noch
> nicht konfiguriert.   Paket libgl1 ist nicht installiert.   Paket
> libgl1-mesa-glx:AMD64, das libgl1 bereitstellt, ist noch nicht
> konfiguriert.
> 
> dpkg: Fehler beim Bearbeiten des Paketes libreoffice-core
> (--configure):  Abhängigkeitsprobleme - verbleibt unkonfiguriert dpkg:
> Abhängigkeitsprobleme verhindern Konfiguration von
> libreoffice-pdfimport:  libreoffice-pdfimport hängt ab von
> libreoffice-core; aber:   Paket libreoffice-core ist noch nicht
> konfiguriert.
> 
> dpkg: Fehler beim Bearbeiten des Paketes libreoffice-pdfimport
> (--configure):  Abhängigkeitsprobleme - verbleibt unkonfiguriert dpkg:
> Abhängigkeitsprobleme verhindern Konfiguration von libreoffice-avmedEs
> wurde kein Apport-Bericht verfasst, da die Fehlermeldung darauf
> hindeutet, dass dies lediglich ein Folgefehler eines vorherigen
> Problems ist.
>                                                                                                   ia-backend-gstreamer:  libreoffice-avmedia-backend-gstreamer hängt ab
> von libreoffice-core; aber:   Paket libreoffice-core ist noch nicht
> konfiguriert.
> 
> dpkg: Fehler beim Bearbeiten des Paketes
> libreoffice-avmedia-backend-gstreamer (--configure): 
> Abhängigkeitsprobleme - verbleibt unkonfiguriert dpkg:
> Abhängigkeitsprobleme verhindern Konfiguration von
> libreoffice-base-core:  libreoffice-base-core hängt ab von
> libreoffice-core (= 1:4.2.8-0ubuntu3); aber:   Paket libreoffice-core
> ist noch nicht konfiguriert.

(Mauvaise) traduction Google:

    libgl1-mesa-glx: AMD64 (10.1.3-0ubuntu0.5) is set up ... update-alternatives: Warning: Reinstall the alternative is enforced /usr/lib/x86_64-linux-gnu/mesa/ld.so.conf because Link Group x86_64-linux-gnu_gl_conf is defective update-alternatives: error: '/ etc / ATI "can not be removed: If a directory dpkg: error processing package libgl1-mesa-glx: AMD64 (--configure): subprocess installed post-installation script returned error exit status 2 dpkg: dependency problems prevent configuration of libreoffice-core: libreoffice-core depends on libgl1-mesa-glx | libgl1; however: Package libgl1-mesa-glx: AMD64 is not configured yet. Package libgl1 is not installed. Package libgl1-mesa-glx: AMD64, which provides libgl1, is not configured yet.

dpkg: error processing package libreoffice-core (--configure): dependency problems - remains unconfigured dpkg: dependency problems prevent configuration of libreoffice-pdfimport: libreoffice-pdfimport depends on libreoffice-core; however: Package libreoffice-core is not configured yet.

dpkg: error processing package libreoffice-pdfimport (--configure): dependency problems - remains unconfigured dpkg: dependency problems prevent configuration of libreoffice-avmedEs not apport report was written because the error message indicates that this is merely a consequence of failure of a previous problem is. ia-backend-gstreamer: libreoffice-Avmedia backend gstreamer depends on libreoffice-core; however: Package libreoffice-core is not configured yet.

dpkg: error processing package libreoffice-Avmedia-backend-gstreamer (--configure): dependency problems - remains unconfigured dpkg: dependency problems prevent configuration of libreoffice-base-core: libreoffice-base-core depends on libreoffice-core (= 1 : 4.2.8-0ubuntu3); however: Package libreoffice-core is not configured yet.

J'ai également essayé ce qui suit:

Sudo apt-get purge libreoffice*
Sudo apt-get install libreoffice

mais les problèmes demeurent.

ÉDITER:

Sudo dpkg --configure -a

donne ce qui suit:

> Setting up libgl1-mesa-glx:AMD64 (10.1.3-0ubuntu0.5) ...
> update-alternatives: warning: forcing reinstallation of alternative
> /usr/lib/x86_64-linux-gnu/mesa/ld.so.conf because link group
> x86_64-linux-gnu_gl_conf is broken update-alternatives: error: unable
> to remove '/etc/ATI': Is a directory dpkg: error processing package
> libgl1-mesa-glx:AMD64 (--configure):  subprocess installed
> post-installation script returned error exit status 2 Setting up fglrx
> (2:15.200-0ubuntu0.5) ... update-alternatives: warning: forcing
> reinstallation of alternative
> /usr/lib/x86_64-linux-gnu/mesa/ld.so.conf because link group
> x86_64-linux-gnu_gl_conf is broken update-alternatives: error: unable
> to remove '/etc/ATI': Is a directory dpkg: error processing package
> fglrx (--configure):  subprocess installed post-installation script
> returned error exit status 2 dpkg: dependency problems prevent
> configuration of openjdk-7-jre:AMD64:  openjdk-7-jre:AMD64 depends on
> libgl1-mesa-glx | libgl1; however:   Package libgl1-mesa-glx:AMD64 is
> not configured yet.   Package libgl1 is not installed.   Package
> libgl1-mesa-glx:AMD64 which provides libgl1 is not configured yet.
> 
> dpkg: error processing package openjdk-7-jre:AMD64 (--configure): 
> dependency problems - leaving unconfigured dpkg: dependency problems
> prevent configuration of libreoffice-core:  libreoffice-core depends
> on libgl1-mesa-glx | libgl1; however:   Package libgl1-mesa-glx:AMD64
> is not configured yet.   Package libgl1 is not installed.   Package
> libgl1-mesa-glx:AMD64 which provides libgl1 is not configured yet.
> 
> dpkg: error processing package libreoffice-core (--configure): 
> dependency problems - leaving unconfigured dpkg: dependency problems
> prevent configuration of python3-uno:  python3-uno depends on
> libreoffice-core (= 1:4.2.8-0ubuntu3); however:   Package
> libreoffice-core is not configured yet.
> 
> dpkg: error processing package python3-uno (--configure):  dependency
> problems - leaving unconfigured dpkg: dependency problems prevent
> configuration of libreoffice-math:  libreoffice-math depends on
> libreoffice-core (= 1:4.2.8-0ubuntu3); however:   Package
> libreoffice-core is not configured yet.
> 
> dpkg: error processing package libreoffice-math (--configure): 
> dependency problems - leaving unconfigured dpkg: dependency problems
> prevent configuration of libreoffice-impress:  libreoffice-impress
> depends on libreoffice-core (= 1:4.2.8-0ubuntu3); however:   Package
> libreoffice-core is not configured yet.
> 
> dpkg: error processing package libreoffice-impress (--configure): 
> dependency problems - leaving unconfigured dpkg: dependency problems
> prevent configuration of libgl1-mesa-dev:  libgl1-mesa-dev depends on
> libgl1-mesa-glx (= 10.1.3-0ubuntu0.5) | libgl1-mesa-glx-lts-utopic |
> libgl1-mesa-glx-lts-vivid; however:   Package libgl1-mesa-glx:AMD64 is
> not configured yet.   Package libgl1-mesa-glx-lts-utopic is not
> installed.   Package libgl1-mesa-glx-lts-vivid is not installed.
> 
> dpkg: error processing package libgl1-mesa-dev (--configure): 
> dependency problems - leaving unconfigured dpkg: dependency problems
> prevent configuration of libreoffice:  libreoffice depends on
> libreoffice-core (= 1:4.2.8-0ubuntu3); however:   Package
> libreoffice-core is not configured yet.  libreoffice depends on
> libreoffice-impress; however:   Package libreoffice-impress is not
> configured yet.  libreoffice depends on libreoffice-math; however:  
> Package libreoffice-math is not configured yet.  libreoffice depends
> on python3-uno (>= 4.0~); however:   Package python3-uno is not
> configured yet.
> 
> dpkg: error processing package libreoffice (--configure):  dependency
> problems - leaving unconfigured dpkg: dependency problems prevent
> configuration of libreoffice-writer:  libreoffice-writer depends on
> libreoffice-core (= 1:4.2.8-0ubuntu3); however:   Package
> libreoffice-core is not configured yet.
> 
> dpkg: error processing package libreoffice-writer (--configure): 
> dependency problems - leaving unconfigured dpkg: dependency problems
> prevent configuration of libreoffice-base-core:  libreoffice-base-core
> depends on libreoffice-core (= 1:4.2.8-0ubuntu3); however:   Package
> libreoffice-core is not configured yet.
> 
> dpkg: error processing package libreoffice-base-core (--configure): 
> dependency problems - leaving unconfigured dpkg: dependency problems
> prevent configuration of libreoffice-gnome:  libreoffice-gnome depends
> on libreoffice-core (= 1:4.2.8-0ubuntu3); however:   Package
> libreoffice-core is not configured yet.
> 
> dpkg: error processing package libreoffice-gnome (--configure): 
> dependency problems - leaving unconfigured dpkg: dependency problems
> prevent configuration of libreoffice-base:  libreoffice-base depends
> on libreoffice-base-core (= 1:4.2.8-0ubuntu3); however:   Package
> libreoffice-base-core is not configured yet.  libreoffice-base depends
> on libreoffice-core (= 1:4.2.8-0ubuntu3); however:   Package
> libreoffice-core is not configured yet.
> 
> dpkg: error processing package libreoffice-base (--configure): 
> dependency problems - leaving unconfigured dpkg: dependency problems
> prevent configuration of libreoffice-sdbc-firebird: 
> libreoffice-sdbc-firebird depends on libreoffice-core; however:  
> Package libreoffice-core is not configured yet.
> 
> dpkg: error processing package libreoffice-sdbc-firebird
> (--configure):  dependency problems - leaving unconfigured dpkg:
> dependency problems prevent configuration of
> libreoffice-report-builder-bin:  libreoffice-report-builder-bin
> depends on libreoffice-base; however:   Package libreoffice-base is
> not configured yet.  libreoffice-report-builder-bin depends on
> libreoffice-core; however:   Package libreoffice-core is not
> configured yet.
> 
> dpkg: error processing package libreoffice-report-builder-bin
> (--configure):  dependency problems - leaving unconfigured dpkg:
> dependency problems prevent configuration of libreoffice-sdbc-hsqldb: 
> libreoffice-sdbc-hsqldb depends on libreoffice-core; however:  
> Package libreoffice-core is not configured yet.
> 
> dpkg: error processing package libreoffice-sdbc-hsqldb (--configure): 
> dependency problems - leaving unconfigured dpkg: dependency problems
> prevent configuration of libreoffice-pdfimport:  libreoffice-pdfimport
> depends on libreoffice-core; however:   Package libreoffice-core is
> not configured yet.
> 
> dpkg: error processing package libreoffice-pdfimport (--configure): 
> dependency problems - leaving unconfigured dpkg: dependency problems
> prevent configuration of libreoffice-avmedia-backend-gstreamer: 
> libreoffice-avmedia-backend-gstreamer depends on libreoffice-core;
> however:   Package libreoffice-core is not configured yet.
> 
> dpkg: error processing package libreoffice-avmedia-backend-gstreamer
> (--configure):  dependency problems - leaving unconfigured dpkg:
> dependency problems prevent configuration of libreoffice-gtk: 
> libreoffice-gtk depends on libreoffice-core (= 1:4.2.8-0ubuntu3);
> however:   Package libreoffice-core is not configured yet.
> 
> dpkg: error processing package libreoffice-gtk (--configure): 
> dependency problems - leaving unconfigured dpkg: dependency problems
> prevent configuration of libreoffice-base-drivers: 
> libreoffice-base-drivers depends on libreoffice-core; however:  
> Package libreoffice-core is not configured yet.
> 
> dpkg: error processing package libreoffice-base-drivers (--configure):
> dependency problems - leaving unconfigured dpkg: dependency problems
> prevent configuration of libreoffice-draw:  libreoffice-draw depends
> on libreoffice-core (= 1:4.2.8-0ubuntu3); however:   Package
> libreoffice-core is not configured yet.
> 
> dpkg: error processing package libreoffice-draw (--configure): 
> dependency problems - leaving unconfigured dpkg: dependency problems
> prevent configuration of libreoffice-calc:  libreoffice-calc depends
> on libreoffice-base-core (= 1:4.2.8-0ubuntu3); however:   Package
> libreoffice-base-core is not configured yet.  libreoffice-calc depends
> on libreoffice-core (= 1:4.2.8-0ubuntu3); however:   Package
> libreoffice-core is not configured yet.
> 
> dpkg: error processing package libreoffice-calc (--configure): 
> dependency problems - leaving unconfigured Errors were encountered
> while processing:  libgl1-mesa-glx:AMD64  fglrx  openjdk-7-jre:AMD64 
> libreoffice-core  python3-uno  libreoffice-math  libreoffice-impress 
> libgl1-mesa-dev  libreoffice  libreoffice-writer 
> libreoffice-base-core  libreoffice-gnome  libreoffice-base 
> libreoffice-sdbc-firebird  libreoffice-report-builder-bin 
> libreoffice-sdbc-hsqldb  libreoffice-pdfimport 
> libreoffice-avmedia-backend-gstreamer  libreoffice-gtk 
> libreoffice-base-drivers  libreoffice-draw  libreoffice-calc

EDIT: utilisation

Sudo apt-get install aptitude

Je reçois:

The following partially installed packages will be configured:
  fglrx libgl1-mesa-dev libgl1-mesa-glx openjdk-7-jre 
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Setting up libgl1-mesa-glx:AMD64 (10.1.3-0ubuntu0.5) ...
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/x86_64-linux-gnu/mesa/ld.so.conf because link group x86_64-linux-gnu_gl_conf is broken
update-alternatives: error: unable to remove '/etc/ATI': Is a directory
dpkg: error processing package libgl1-mesa-glx:AMD64 (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of openjdk-7-jre:AMD64:
 openjdk-7-jre:AMD64 depends on libgl1-mesa-glx | libgl1; however:
  Package libgl1-mesa-glx:AMD64 is not configured yet.
  Package libgl1 is not installed.
  Package libgl1-mesa-glx:AMD64 which provides libgl1 is not configured yet.

dpkg: error processing package openjdk-7-jre:AMD64 (--configure):
 dependency problems - leaving unconfigured
Setting up fglrx (2:15.200-0ubuntu0.5) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                          update-alternatives: warning: forcing reinstallation of alternative /usr/lib/x86_64-linux-gnu/mesa/ld.so.conf because link group x86_64-linux-gnu_gl_conf is broken
update-alternatives: error: unable to remove '/etc/ATI': Is a directory
No apport report written because MaxReports is reached already
                                                              dpkg: error processing package fglrx (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of libgl1-mesa-dev:
 libgl1-mesa-dev depends on libgl1-mesa-glx (= 10.1.3-0ubuntu0.5) | libgl1-mesa-glx-lts-utopic | libgl1-mesa-glx-lts-vivid; however:
  Package libgl1-mesa-glx:AMD64 is not configured yet.
  Package libgl1-mesa-glx-lts-utopic is not installed.
  Package libgl1-mesa-glx-lts-vivid is not installed.

dpkg: error processing package libgl1-mesa-dev (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libgl1-mesa-glx:AMD64
 openjdk-7-jre:AMD64
 fglrx
 libgl1-mesa-dev
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up libgl1-mesa-glx:AMD64 (10.1.3-0ubuntu0.5) ...
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/x86_64-linux-gnu/mesa/ld.so.conf because link group x86_64-linux-gnu_gl_conf is broken
update-alternatives: error: unable to remove '/etc/ATI': Is a directory
dpkg: error processing package libgl1-mesa-glx:AMD64 (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up fglrx (2:15.200-0ubuntu0.5) ...
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/x86_64-linux-gnu/mesa/ld.so.conf because link group x86_64-linux-gnu_gl_conf is broken
update-alternatives: error: unable to remove '/etc/ATI': Is a directory
dpkg: error processing package fglrx (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of openjdk-7-jre:AMD64:
 openjdk-7-jre:AMD64 depends on libgl1-mesa-glx | libgl1; however:
  Package libgl1-mesa-glx:AMD64 is not configured yet.
  Package libgl1 is not installed.
  Package libgl1-mesa-glx:AMD64 which provides libgl1 is not configured yet.

dpkg: error processing package openjdk-7-jre:AMD64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libgl1-mesa-dev:
 libgl1-mesa-dev depends on libgl1-mesa-glx (= 10.1.3-0ubuntu0.5) | libgl1-mesa-glx-lts-utopic | libgl1-mesa-glx-lts-vivid; however:
  Package libgl1-mesa-glx:AMD64 is not configured yet.
  Package libgl1-mesa-glx-lts-utopic is not installed.
  Package libgl1-mesa-glx-lts-vivid is not installed.

dpkg: error processing package libgl1-mesa-dev (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libgl1-mesa-glx:AMD64
 fglrx
 openjdk-7-jre:AMD64
 libgl1-mesa-dev

mais déjà l'insallation d'aptitude a donné des messages d'erreur comme, donc je ne sais pas si aptitude fonctionne correctement.

1
DonkeyKong

J'ai eu le même problème. Voici ce que je pensais:

Fehler: »/etc/ATI« kann nicht entfernt werden: Ist ein Verzeichnis

En anglais:

error: unable to remove '/etc/ATI': Is a directory

Donc, très probablement, c'est dans le script de mise à jour

rm /etc/ATI

au lieu de

rm -r /etc/ATI

Donc ce que j'ai fait, c'est:

Sudo mv /etc/ATI /etc/ATI_
Sudo touch /etc/ATI
Sudo apt-get upgrade

Ça a marché!

1
Gero