【问题标题】:dependency problems - leaving unconfigured [closed]依赖性问题 - 未配置 [关闭]
【发布时间】:2018-11-16 18:08:51
【问题描述】:

这是我尝试在 Ubuntu 18.04 中安装 git 时得到的结果。我可能已经问了一个重复的问题,但我没有得到任何解决方案。

kcn@kcn-UBUNTU:~$ sudo apt-get install git
Reading package lists... Done
Building dependency tree       
Reading state information... Done
git is already the newest version (1:2.17.1-1ubuntu0.3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 0 B/7,732 B of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y

dpkg: error processing package libavahi-glib1:amd64 (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration

dpkg: dependency problems prevent configuration of geoclue-2.0:
 geoclue-2.0 depends on libavahi-glib1 (>= 0.6.16); however:
  Package libavahi-glib1:amd64 is not configured yet.

No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          dpkg: error processing package geoclue-2.0 (--configure):
 dependency problems - leaving unconfigured

dpkg: dependency problems prevent configuration of libgeoclue-2-0:amd64:
 libgeoclue-2-0:amd64 depends on geoclue-2.0 (= 2.4.7-1ubuntu1); however:
  Package geoclue-2.0 is not configured yet.

dpkg: error processing package libgeoclue-2-0:amd64 (--configure):
 dependency problems - leaving unconfigured

No apport report written because the error message indicates its a followup error from a previous failure.


Errors were encountered while processing:
 libavahi-glib1:amd64
 geoclue-2.0
 libgeoclue-2-0:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)

我尝试执行以下操作:

kcn@kcn-UBUNTU:~$ sudo apt-get install git

[sudo] kcn 的密码:

E: dpkg 被中断,你必须手动运行 'sudo dpkg --configure -a' 来纠正问题。

所以我输入了

kcn@kcn-UBUNTU:~$ sudo dpkg --configure -a
................

................

dpkg: error processing package libavahi-glib1:amd64 (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration

【问题讨论】:

  • sudo dpkg --configure <first dependency package with error> 解决了我的问题。

标签: linux git ubuntu sudo apt


【解决方案1】:

试试这个:

sudo dpkg --configure -a
sudo apt-get -f install
sudo apt install libavahi-glib1 --reinstall

sudo dpkg --configure -a

指示 dpkg “修复”自身

sudo apt-get -f install

这将指示 apt-get 更正依赖关系并继续配置您的包。

sudo apt install libavahi-glib1 --reinstall

重新安装“probelatic package”

【讨论】:

  • 非常感谢,先生。我已经更正了。
【解决方案2】:

首先尝试重新安装损坏的软件包,如提示中所说的,例如

sudo apt-get install --reinstall libavahi-glib1

【讨论】:

  • 感谢回复
猜你喜欢
  • 1970-01-01
  • 2015-09-06
  • 1970-01-01
  • 2017-10-14
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-01-31
相关资源
最近更新 更多