web-dev-qa-db-ja.com

依存関係の問題、更新時

依存関係に問題があり、ドイツ語でUbuntuをインストールしたことを後悔しています...誰かがとにかく助けてくれることを願っています:何かを更新しようとするたびに、いくつかの依存関係のエラーメッセージが表示されます。 :

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

それから次のようなメッセージがいくつか表示されます。

> 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.

(悪い)グーグル翻訳:

    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.

私は以下も試しました:

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

しかし、問題は残っています。

編集:

Sudo dpkg --configure -a

以下を与えます:

> 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

編集:使用

Sudo apt-get install aptitude

私は得ます:

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

しかし、aptitudeのインストールによって次のようなエラーメッセージが表示されたため、aptitudeが適切に動作しているかどうかはわかりません。

1
DonkeyKong

私も同じ問題を抱えていました。これが私が思ったことです:

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

英語で:

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

おそらくこれは更新スクリプトにあります

rm /etc/ATI

の代わりに

rm -r /etc/ATI

だから私がしたことは:

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

出来た!

1
Gero