首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装apache打开的office并卸载它,它已经扼杀了我的一天。

安装apache打开的office并卸载它,它已经扼杀了我的一天。
EN

Ask Ubuntu用户
提问于 2019-04-15 18:22:20
回答 1查看 73关注 0票数 1

大家好,所以我试着安装apache office,因此不得不首先卸载libre office,但是在意识到它是假的之后,我再次尝试安装libre office,这是我用snap做的,但是每当我尝试安装其他东西,甚至升级我的软件包时,我都会得到以下错误:例如;

代码语言:javascript
复制
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.

..

代码语言:javascript
复制
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).
EN

回答 1

Ask Ubuntu用户

发布于 2020-06-07 22:10:49

您所得到的错误是由于安装中断或未满足的依赖关系造成的,这可能是由于sayed包的卸载失败造成的。

请跑

代码语言:javascript
复制
apt-get autoremove
apt-get autoclean
apt-get -f install
apt-get --fix-broken install
dpkg --configure -a
sudo apt-get update

apt-get autoremove

“自动删除”选项删除自动安装的包,因为某些其他包需要这些包,但是,随着这些其他包的删除,这些包不再需要。

apt-get autoclean

apt-get自动清理选项,像apt-get清理一样,清除本地存储库检索的包文件,但它只删除不能再下载的文件,而且实际上是无用的。它有助于防止缓存变得太大。

apt-get -f installapt-get --fix-broken install

-f意味着修复,该命令用于修复损坏的安装。

我希望这能帮到你。

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1134162

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档