我收到了更新 libreoffice 的通知,但是我之前已经删除了 libreoffice 并安装了 openoffice 很多次,所以当我想要安装或删除任何应用程序时,我收到此错误:
You might want to run 'apt-get -f install' to correct these: The
following packages have unmet dependencies: libreoffice : Depends:
fonts-sil-gentium-basic but it is not going to be installed
Depends: libreoffice-base but it is not going to be installed
Depends: libreoffice-report-builder-bin but it is not going to be installed
Depends: libreoffice-java-common (>= 1:5.1.6~rc2~) but it is not going to be installed libreoffice-core : Depends:
libreoffice-common (> 1:5.1.6~rc2) but it is not going to be installed
libreoffice-ogltrans : Depends: libreoffice-common but it is not going
to be installed libreoffice-style-elementary : Depends:
libreoffice-common (= 1:5.1.6~rc2-0ubuntu1~xenial3) but it is not
going to be installed libreoffice-style-galaxy : Depends:
libreoffice-common (= 1:5.1.6~rc2-0ubuntu1~xenial3) but it is not
going to be installed libreoffice-style-tango : Depends:
libreoffice-common (= 1:5.1.6~rc2-0ubuntu1~xenial3) but it is not
going to be installed E: Unmet dependencies. Try 'apt-get -f install'
with no packages (or specify a solution).
我无法安装 synaptic 来解决此错误,因为我再次遇到此错误!注意:我尝试过sudo apt-get -f install
但再次遇到此错误!我该如何解决它!?
答案1
sudo dpkg --configure -a 尝试解决这些损坏的依赖关系。有关 dpkg 的更多信息,可以在 ubuntu 手册页中找到: dpkg 手册页