apt-get 说“无法纠正问题,您持有破损的包裹。”

Yat*_*wal 18 package-management apt

可能的重复:
如何解决未满足的依赖项?

TL;DR: sudo apt-get install ...说“无法纠正问题,您持有破损的包裹。”

问题

我试图按照这篇博文获取 PP 和 QQ 的 WebApps 功能

我运行了sudo add-apt-repository ppa:webapps/preview添加存储库的命令,但出现连接错误。因为我知道我当前的 ISP 提供了不稳定的连接,所以我再次尝试,果然,它奏效了。

然后我跑了sudo apt-get install unity-webapps-preview,但我意识到我们必须先更新apt-get,所以我点击Ctrl+C来阻止它。然后我运行了sudo apt-get update它,但没有大惊小怪,但是当我sudo apt-get install unity-webapps-preview稍后再次运行时,它显示了一条错误消息。这是转储:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 unity-webapps-preview : Depends: xul-ext-unity but it is not going to be installed
                         Depends: xul-ext-websites-integration but it is not going to be installed
                         Depends: xul-ext-webaccounts but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)

我想这可能是因为我打断了之前的命令。不过,它没有机会输出任何东西——我很快就停止了。

我试过的

命令

我试过这些:-

  • sudo apt-get install --fix-broken
  • sudo apt-get autoclean
  • sudo apt-get autoremove
  • sudo apt-get -f install

但即使在sudo apt-get upgrade每次尝试后都运行后,它们都没有奏效。

吹扫

我尝试清除存储库,但这也不起作用。首先,我使用sudoapt-get install ppa-purge得到了包and then tried to purge the WebApps repo using sudo ppa-purge ppa:webapps/preview`。

手动安装依赖

如果您仔细查看错误转储,它会说:

依赖:xul-ext-unity,但不会安装依赖:xul-ext-websites-integration,但不会安装依赖:xul-ext-webaccounts,但不会安装

所以我尝试手动安装它们。我跑了sudo apt-get install xul-ext-unity,但得到了这个:

取决于:xul-ext-websites-integration 但不会安装 中断:firefox (>= 15.+) 但要安装 16.0~b6+build1-0ubuntu0.12.04.1~mfn4

我不知道第二部分是什么意思,但我尝试解决第一部分。跑步sudo apt-get install xul-ext-websites-integration给出了:

xul-ext-websites-integration : Breaks: firefox (>= 15.+) but 16.0~b6+build1-0ubuntu0.12.04.1~mfn4 is to be installed

作为最后的手段,我尝试了sudo apt-get install xul-ext-webaccounts,但这也给出了理智的信息:

Breaks: firefox (>= 14.+) 但要安装 16.0~b6+build1-0ubuntu0.12.04.1~mfn4

什么Breaks: firefox (>= 14.+) but 16.0~b6+build1-0ubuntu0.12.04.1~mfn4 is to be installed意思?

研究

我尝试搜索Google,查看几个论坛,查看此问题并在 AU 上搜索,但无济于事。帮助将不胜感激。

Vik*_*eet 4

尝试sudo apt-get -f install命令