Apt-get说“无法纠正问题,你已经破了包裹。”

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

TL; DR: sudo apt-get install ...说“无法纠正问题,你已经破坏了包裹。”

问题

我试图在此博客文章后获得PP和QQ的WebAppsfunction。

我运行了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. 

我想这可能是因为我打断了早先的命令。 虽然它没有机会输出任何东西 – 我很快停了下来。

我尝试了什么

命令

我试过这些: –

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

但即使在每次尝试后运行sudo apt-get upgrade之后,它们都没有起作用。

清洗

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

手动安装依赖项

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

取决于:xul-ext-unity但它不会被安装取决于:xul-ext-websites-integration-integration但它不会被安装取决于:xul-ext-webaccounts但它不会被安装

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

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

我不知道第二部分意味着什么,但我尝试解决第一部分。 运行sudo apt-get install xul-ext-websites-integration给出:

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

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

rest: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意味着什么?

研究

我试着搜索谷歌 ,看几个论坛 ,看着这个问题 ,搜索AU,但无济于事。 帮助将不胜感激。

尝试sudo apt-get -f install命令