许多软件包存在“依赖性问题,未配置”

许多软件包存在“依赖性问题,未配置”

我正在使用 Ubuntu 16.04

$ sudo dpkg --configure -a
dpkg: error processing package lightdm (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-4.4.0-53-generic:
linux-image-4.4.0-53-generic depends on initramfs-tools | linux-initramfs-tool; however:
Package initramfs-tools is not configured yet.
Package linux-initramfs-tool is not installed.
Package initramfs-tools which provides linux-initramfs-tool is not configured yet.

dpkg: error processing package linux-image-4.4.0-53-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of accountsservice:
accountsservice depends on dbus; however:
Package dbus is not configured yet.

dpkg: error processing package accountsservice (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-4.4.0-53-generic; however:
Package linux-image-4.4.0-53-generic is not configured yet.

dpkg: error processing package linux-image-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent processing triggers for gconf2:
gconf2 depends on dbus-x11; however:
Package dbus-x11 is not configured yet.

dpkg: error processing package gconf2 (--configure):
dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent configuration of apparmor:
apparmor depends on initramfs-tools | linux-initramfs-tool; however:
Package initramfs-tools is not configured yet.
Package linux-initramfs-tool is not installed.
Package initramfs-tools which provides linux-initramfs-tool is not configured yet.

dpkg: error processing package apparmor (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-extra-4.4.0-53-generic:
linux-image-extra-4.4.0-53-generic depends on linux-image-4.4.0-53-generic; however:
Package linux-image-4.4.0-53-generic is not configured yet.

dpkg: error processing package linux-image-extra-4.4.0-53-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 4.4.0.53.56); however:
Package linux-image-generic is not configured yet.

dpkg: error processing package linux-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of snap-confine:
snap-confine depends on apparmor (>= 2.10.95-0ubuntu2.2); however:
Package apparmor is not configured yet.

dpkg: error processing package snap-confine (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of snapd:
snapd depends on snap-confine (>= 1.0.43); however:
Package snap-confine is not configured yet.

dpkg: error processing package snapd (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ubuntu-core-launcher:
ubuntu-core-launcher depends on snap-confine; however:
Package snap-confine is not configured yet.

dpkg: error processing package ubuntu-core-launcher (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent processing triggers for gconf2:
gconf2 depends on dbus-x11; however:
Package dbus-x11 is not configured yet.

dpkg: error processing package gconf2 (--configure):
dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for gconf2:
gconf2 depends on dbus-x11; however:
Package dbus-x11 is not configured yet.

dpkg: error processing package gconf2 (--configure):
dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for gconf2:
gconf2 depends on dbus-x11; however:
Package dbus-x11 is not configured yet.

dpkg: error processing package gconf2 (--configure):
dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for gconf2:
gconf2 depends on dbus-x11; however:
Package dbus-x11 is not configured yet.

dpkg: error processing package gconf2 (--configure):
dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for gconf2:
gconf2 depends on dbus-x11; however:
Package dbus-x11 is not configured yet.

dpkg: error processing package gconf2 (--configure):
dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for gconf2:
gconf2 depends on dbus-x11; however:
Package dbus-x11 is not configured yet.

dpkg: error processing package gconf2 (--configure):
dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for gconf2:
gconf2 depends on dbus-x11; however:
Package dbus-x11 is not configured yet.

dpkg: error processing package gconf2 (--configure):
dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for gconf2:
gconf2 depends on dbus-x11; however:
Package dbus-x11 is not configured yet.

dpkg: error processing package gconf2 (--configure):
dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for gconf2:
gconf2 depends on dbus-x11; however:
Package dbus-x11 is not configured yet.

dpkg: error processing package gconf2 (--configure):
dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for gconf2:
gconf2 depends on dbus-x11; however:
Package dbus-x11 is not configured yet.

dpkg: error processing package gconf2 (--configure):
dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for gconf2:
gconf2 depends on dbus-x11; however:
Package dbus-x11 is not configured yet.

dpkg: error processing package gconf2 (--configure):
dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for gconf2:
gconf2 depends on dbus-x11; however:
Package dbus-x11 is not configured yet.

dpkg: error processing package gconf2 (--configure):
dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for gconf2:
gconf2 depends on dbus-x11; however:
Package dbus-x11 is not configured yet.

dpkg: error processing package gconf2 (--configure):
dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for gconf2:
gconf2 depends on dbus-x11; however:
Package dbus-x11 is not configured yet.

dpkg: error processing package gconf2 (--configure):
dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for gconf2:
gconf2 depends on dbus-x11; however:
Package dbus-x11 is not configured yet.

dpkg: error processing package gconf2 (--configure):
dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for gconf2:
gconf2 depends on dbus-x11; however:
Package dbus-x11 is not configured yet.

dpkg: error processing package gconf2 (--configure):
dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for gconf2:
gconf2 depends on dbus-x11; however:
Package dbus-x11 is not configured yet.

dpkg: error processing package gconf2 (--configure):
dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for gconf2:
gconf2 depends on dbus-x11; however:
Package dbus-x11 is not configured yet.

dpkg: error processing package gconf2 (--configure):
dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for gconf2:
gconf2 depends on dbus-x11; however:
Package dbus-x11 is not configured yet.

dpkg: error processing package gconf2 (--configure):
dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for gconf2:
gconf2 depends on dbus-x11; however:
Package dbus-x11 is not configured yet.

dpkg: error processing package gconf2 (--configure):
dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for gconf2:
gconf2 depends on dbus-x11; however:
Package dbus-x11 is not configured yet.

dpkg: error processing package gconf2 (--configure):
dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for gconf2:
gconf2 depends on dbus-x11; however:
Package dbus-x11 is not configured yet.

dpkg: error processing package gconf2 (--configure):
dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for gconf2:
gconf2 depends on dbus-x11; however:
Package dbus-x11 is not configured yet.

dpkg: error processing package gconf2 (--configure):
dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for gconf2:
gconf2 depends on dbus-x11; however:
Package dbus-x11 is not configured yet.

dpkg: error processing package gconf2 (--configure):
dependency problems - leaving triggers unprocessed
dpkg: too many errors, stopping
Errors were encountered while processing:
ifupdown
whoopsie
udev
unattended-upgrades
resolvconf
dbus
pulseaudio
libpam-systemd:amd64
initramfs-tools-core
dbus-x11
pulseaudio-module-x11
initramfs-tools
xserver-xorg-core
network-manager
ubuntu-drivers-common
pulseaudio-module-bluetooth
lightdm
linux-image-4.4.0-53-generic
accountsservice
linux-image-generic
gconf2
apparmor
linux-image-extra-4.4.0-53-generic
linux-generic
snap-confine
snapd
ubuntu-core-launcher
gconf2
gconf2
gconf2
gconf2
gconf2
gconf2
gconf2
gconf2
gconf2
gconf2
gconf2
gconf2
gconf2
gconf2
gconf2
gconf2
gconf2
gconf2
gconf2
gconf2
gconf2
gconf2
gconf2
gconf2
Processing was halted because there were too many errors.

我应该怎么办?

答案1

我从 Ubuntu 16.04 升级到 18.04 时遇到了这个问题。发布我的解决方案可能会帮助其他访问此页面的人。

我尝试对每个看似损坏的包执行以下操作。

dpkg --configure <package name>

在迭代一些依赖项时出现以下消息:

debconf: DbDriver "config": /var/cache/debconf/config.dat is locked

这个问题已经解决了,答案如下安装软件包时出现“debconf:DbDriver“config”:config.dat 被另一个进程锁定:资源暂时不可用”

我删除了答案中描述的文件,并且

dpkg --configure -a

运行没有问题。

答案2

就我而言,我在从 Linux Mint 17.3 (Rosa) 升级到 18 (Sarah) 时遇到了类似的问题。我得到了如下输出:

dpkg: error processing package gconf2 (--configure):
 dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for gconf2:
 gconf2 depends on dbus-x11; however:
  Package dbus-x11 is not configured yet.

dpkg: error processing package gconf2 (--configure):
 dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for gconf2:
 gconf2 depends on dbus-x11; however:
  Package dbus-x11 is not configured yet.

dpkg: error processing package gconf2 (--configure):
 dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for gconf2:
 gconf2 depends on dbus-x11; however:
  Package dbus-x11 is not configured yet.

dpkg: error processing package gconf2 (--configure):
 dependency problems - leaving triggers unprocessed
dpkg: too many errors, stopping
Errors were encountered while processing:
 gconf2
 gconf2
 gconf2
 gconf2
 gconf2
 gconf2

字节指挥官的评论提示我找到了解决方案。 sudo dpkg --configure dbus-x11抱怨说未配置软件包 dbus。因此,我按照该逻辑进行了操作 sudo dpkg --configure dbus,似乎成功了。之后我运行了sudo apt-get -f install,这次运行没有问题。

答案3

我也遇到了同样的问题,只需输入以下内容:

apt reinstall gconf2

这帮我解决了这个问题。希望我能帮到你。

答案4

只需在终端中输入:

apt --fix-broken install

sudo dpkg -i your_package_amd64.deb

在 99% 的情况下它可以解决问题。

相关内容