如何获取存储库以覆盖该存储库中所有软件的所有其他存储库?

  1. 对于该存储库中的所有软件,如何获取特定存储库以覆盖所有其他存储库? (在任何时候,无论其他任何存储库做什么。)
  2. 解决问题1后,需要什么才能使系统恢复到原始状态(关于LibreOffice,请参阅背景知识 )。

欲望:

  • 所有解决方案均来自命令行。
  • 您实际使用或已经使用过您正在提供的解决方案。 (参见参考资料)

背景:

官方14.04最近更新了LibreOffice,导致官方存储库安装并覆盖了LibreOffice PPA,错误信息是:

# apt-get update # apt-get upgrade ... snip ... You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies: libreoffice-calc : Depends: libreoffice-base-core (= 1:5.4.1~rc2-0ubuntu0.14.04.1~lo0) but 1:5.4.2~rc2-0ubuntu0.14.04.1~lo1 is installed Depends: libreoffice-core (= 1:5.4.1~rc2-0ubuntu0.14.04.1~lo0) but 1:5.4.2~rc2-0ubuntu0.14.04.1~lo1 is installed libreoffice-core : Breaks: libreoffice-calc (< 1:5.4.2~rc2-0ubuntu0.14.04.1~lo1) but 1:5.4.1~rc2-0ubuntu0.14.04.1~lo0 is installed Breaks: libreoffice-draw (< 1:5.4.2~rc2-0ubuntu0.14.04.1~lo1) but 1:5.4.1~rc2-0ubuntu0.14.04.1~lo0 is installed Breaks: libreoffice-impress (< 1:5.4.2~rc2-0ubuntu0.14.04.1~lo1) but 1:5.4.1~rc2-0ubuntu0.14.04.1~lo0 is installed libreoffice-draw : Depends: libreoffice-core (= 1:5.4.1~rc2-0ubuntu0.14.04.1~lo0) but 1:5.4.2~rc2-0ubuntu0.14.04.1~lo1 is installed libreoffice-impress : Depends: libreoffice-core (= 1:5.4.1~rc2-0ubuntu0.14.04.1~lo0) but 1:5.4.2~rc2-0ubuntu0.14.04.1~lo1 is installed E: Unmet dependencies. Try using -f. 

在解决此问题之前,系统现在不会更新任何内容。

参考说明:

基于如何仅从特定存储库安装更新? ,钉扎不是答案。 APT的偏好可能是,但我非常犹豫要使用的例子,因为它们相互矛盾,甚至是Debian wiki :

这个页面是由ZugSchlus编写的,他甚至没有远程掌握钉扎的概念。 因此,请使用“可能”,“需要validation”和字面上类似的措辞,并记录您的发现(可能是“此页面正确”或“此页面错误”,可选“此页面错误,因为“) 这里。

更多信息请访问: https : //bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1722932

所以,经过一些更多的实验和学习,我认为我有一个答案; 不要将系统恢复到原始状态; 改为更改损坏的位。 Ubuntu和LibreOffice的漏洞都被“解决”为“这是他们的错”!

必要性是发明的母亲……

Noobspeak的解决方案:

  1. 运行Synaptic Package Manager如果不确定如何,请按Windows / Super键,然后键入Synaptic并单击相应的图标
  2. 出现提示时输入密码
  3. 单击“状态”按钮。 在此之上,选择’Broken Dependencies’
  4. 在右侧,选择所有四个受影响的LibreOffice包
  5. 右键单击它们并选择“标记为升级”选项
  6. 单击上面的大“应用”按钮。

除非老虎躲藏起来,等着咬我的傲慢背后,我认为这解决了它。 告诉我,如果我给出愚蠢的建议! 谢谢。

如果它对你不起作用,也许你已经在存托凭证中取消了LibreOffice PPA。 重新启用它并重新开始。