大家好,所以我试着安装apache office,因此不得不首先卸载libre office,但是在意识到它是假的之后,我再次尝试安装libre office,这是我用snap做的,但是每当我尝试安装其他东西,甚至升级我的软件包时,我都会得到以下错误:例如;
sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libreoffice-core : Depends: libreoffice-common (> 1:6.2.2) but it is not installed
libreoffice-java-common : Depends: libreoffice-common (= 1:6.2.2-0ubuntu0.16.04.1~lo1) but it is not installed
libreoffice-report-builder : Depends: libreoffice-common (= 1:6.2.2-0ubuntu0.16.04.1~lo1) but it is not installed
libreoffice-script-provider-bsh : Depends: libreoffice-common (= 1:6.2.2-0ubuntu0.16.04.1~lo1) but it is not installed
libreoffice-script-provider-js : Depends: libreoffice-common (= 1:6.2.2-0ubuntu0.16.04.1~lo1) but it is not installed
libreoffice-script-provider-python : Depends: libreoffice-common (= 1:6.2.2-0ubuntu0.16.04.1~lo1) but it is not installed
libreoffice-style-colibre : Depends: libreoffice-common (= 1:6.2.2-0ubuntu0.16.04.1~lo1) but it is not installed
libreoffice-style-elementary : Depends: libreoffice-common (= 1:6.2.2-0ubuntu0.16.04.1~lo1) but it is not installed
libreoffice-style-tango : Depends: libreoffice-common (= 1:6.2.2-0ubuntu0.16.04.1~lo1) but it is not installed
E: Unmet dependencies. Try using -f...
sudo apt-get purge wps-office
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libreoffice-core : Depends: libreoffice-common (> 1:6.2.2) but it is not going to be installed
libreoffice-java-common : Depends: libreoffice-common (= 1:6.2.2-0ubuntu0.16.04.1~lo1) but it is not going to be installed
libreoffice-report-builder : Depends: libreoffice-common (= 1:6.2.2-0ubuntu0.16.04.1~lo1) but it is not going to be installed
libreoffice-script-provider-bsh : Depends: libreoffice-common (= 1:6.2.2-0ubuntu0.16.04.1~lo1) but it is not going to be installed
libreoffice-script-provider-js : Depends: libreoffice-common (= 1:6.2.2-0ubuntu0.16.04.1~lo1) but it is not going to be installed
libreoffice-script-provider-python : Depends: libreoffice-common (= 1:6.2.2-0ubuntu0.16.04.1~lo1) but it is not going to be installed
libreoffice-style-colibre : Depends: libreoffice-common (= 1:6.2.2-0ubuntu0.16.04.1~lo1) but it is not going to be installed
libreoffice-style-elementary : Depends: libreoffice-common (= 1:6.2.2-0ubuntu0.16.04.1~lo1) but it is not going to be installed
libreoffice-style-tango : Depends: libreoffice-common (= 1:6.2.2-0ubuntu0.16.04.1~lo1) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).发布于 2020-06-07 22:10:49
您所得到的错误是由于安装中断或未满足的依赖关系造成的,这可能是由于sayed包的卸载失败造成的。
请跑
apt-get autoremove
apt-get autoclean
apt-get -f install
apt-get --fix-broken install
dpkg --configure -a
sudo apt-get updateapt-get autoremove
“自动删除”选项删除自动安装的包,因为某些其他包需要这些包,但是,随着这些其他包的删除,这些包不再需要。
apt-get autoclean
apt-get自动清理选项,像apt-get清理一样,清除本地存储库检索的包文件,但它只删除不能再下载的文件,而且实际上是无用的。它有助于防止缓存变得太大。
apt-get -f install和apt-get --fix-broken install
-f意味着修复,该命令用于修复损坏的安装。
我希望这能帮到你。
https://askubuntu.com/questions/1134162
复制相似问题