我正在尝试删除 OpenOffice 并返回 LibreOffice,但一直收到错误消息

我正在尝试删除 OpenOffice 并返回 LibreOffice,但一直收到错误消息

我正在尝试删除 OpenOffice 并返回 LibreOffice,但我一直收到此错误消息:

The following packages have unmet dependencies:
 libreoffice-core : Depends: libreoffice-common (> 1:4.0.2) but it is not going to be installed
 libreoffice-help-en-us : Depends: libreoffice-l10n-en-us
 libreoffice-java-common : Depends: libreoffice-common but it is not going to be installed
 libreoffice-l10n-en-gb : Depends: libreoffice-common but it is not going to be installed
 libreoffice-l10n-en-za : Depends: libreoffice-common but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install with no packages (or specify a solution).

然后当我尝试运行时apt-get -f install我得到了这个:

Errors were encountered while processing:
/var/cache/apt/archives/libreoffice-common_1%3a4.0.2-0ubuntu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

在终端中尝试以下命令:

sudo dpkg -r libreoffice-common
sudo apt-get -f install  
sudo apt-get update
sudo apt-get upgrade  

来源当我尝试通过 synaptic 进行更新时,出现“‘文件’与系统上的同一文件不同”的错误信息

答案2

尝试这个命令...

sudo apt-get install libreoffice-common

如果出现类似错误但使用不同的包,则先尝试安装该包,然后尝试 libreoffice-common

相关内容