在配置dpkg时遇到依赖性问题

时间:2014-08-15 11:17:11

标签: dpkg

$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
8 not fully installed or removed.
Need to get 0 B/49.7 kB of archives.
After this operation, 0 B of additional disk space will be used.
dpkg: error processing package python-debian (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
No apport report written because the error message indicates its a followup error from a previous failure.
                          dpkg: dependency problems prevent configuration of update-notifier-common:
 update-notifier-common depends on python-debian; however:
  Package python-debian is not configured yet.

dpkg: error processing package update-notifier-common (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of apt-xapian-index:
 apt-xapian-index depends on python-debian (>= 0.1.14); however:
  Package python-debian is not configured yet.

dpkg: error processing package apt-xapian-index (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of flashplugin-installer:
 flashplugin-installer depends on update-notifier-common (>= 0.119ubuntu2); however:
  Package update-notifier-common is not configured yet.

dpkg: error processing package flashplugin-installer (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-aptdaemon:
 python-aptdaemon dependNo apport report written because the error message indicates its a followup error from a previous failure.
                                                  No apport report written because MaxReports is reached already
                                No apport report written because MaxReports is reached already
              No apport report written because MaxReports is reached already
                                                                            s on python-debian; however:
  Package python-debian is not configured yet.

dpkg: error processing package python-aptdaemon (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-aptdaemon.gtk3widgets:
 python-aptdaemon.gtk3widgets depends on python-aptdaemon (= 1.1.1-1ubuntu5); however:
  Package python-aptdaemon is not configured yet.

dpkg: error processing package python-aptdaemon.gtk3widgets (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of software-center:
 software-center depends on python-aptdaemon (>= 0.40); however:
  Package python-aptdaemon is not configured yet.
 software-center depends on python-aptdaemon.gtk3widgets; however:
  Package python-aptdaemon.gtk3widgets is not configured yet.

dpkg: error processing package software-center (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of sessioninstaller:
 sessioninstaller depends on python-aptdaemon.gtk3widgets; however:
  Package python-aptdaemon.gtk3widgets is not configured yet.

dpkg: error processing package sessioninstaller (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              E: Sub-process /usr/bin/dpkg returned an error code (1)

当我尝试配置dpkg时,我收到此错误... 请告诉我该怎么做......我被卡住了。

1 个答案:

答案 0 :(得分:5)

你的dpkg显然有问题。 运行这个:

sudo dpkg --configure -a 

这将使dpkg自行修复

然后再次运行您的安装。

如果不起作用,请执行:

sudo apt-get install -f

再次

sudo dpkg --configure -a

这应该可以解决问题