我遇到了依赖关系问题,现在很后悔安装了德语版的 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
我也遇到了同样的问题。我的想法如下:
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
有效!