首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >由于依赖关系问题,无法安装LibreOffice

由于依赖关系问题,无法安装LibreOffice
EN

Unix & Linux用户
提问于 2016-07-02 18:47:56
回答 1查看 2.4K关注 0票数 2

我跑了

代码语言:javascript
复制
sudo apt-get update && sudo apt-get dist upgrade

它基本上删除了我的LibreOffice安装。现在,当我尝试重新安装它时,请使用

代码语言:javascript
复制
sudo apt-get install libreoffice

这给我带来了依赖问题。所以我处决了

代码语言:javascript
复制
sudo apt-get purge libreoffice*

然后我试着安装,但同样的问题。我收到了这个错误

代码语言:javascript
复制
gameranand@serenity ~ $ sudo apt-get -f install libreoffice
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libreoffice : Depends: libreoffice-base but it is not going to be installed
               Depends: libreoffice-calc but it is not going to be installed
               Depends: libreoffice-core (= 1:5.2.0~rc1-0ubuntu1~xenial1) but it is not going to be installed
               Depends: libreoffice-draw but it is not going to be installed
               Depends: libreoffice-impress but it is not going to be installed
               Depends: libreoffice-math but it is not going to be installed
               Depends: libreoffice-report-builder-bin but it is not going to be installed
               Depends: libreoffice-writer but it is not going to be installed
               Depends: libreoffice-avmedia-backend-gstreamer but it is not going to be installed
               Depends: python3-uno (>= 4.4.0~beta2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我该怎么解决这个问题。我真的需要这个解决方案,因为我每天都使用Libreoffice。

EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2016-07-04 11:31:39

Ubuntu (信任> Xenial)和Linux (Rosa > Sarah)都刚刚进行了发行版更新,这可能会导致依赖问题。对我来说,在MintRosa17.3上,Libreoffice工作得很好,没有显示可用的更新(已安装的1:5.0.3~rc2-0ubuntu1~trusty2版本)。如果您最近更新到Mint 18,我建议在Linux论坛上发布这个问题。

否则,尝试安装一个旧版本的Libreoffice (不是基于Ubuntu xenial,而是Ubuntu trusty)。请参阅:https://askubuntu.com/questions/138284/how-to-downgrade-a-package-via-apt-get

或者,如果您感到幸运的话,可以从dist upgradehttp://crunchbang.org/forums/viewtopic.php?id=15750中完全回滚。我自己从来没有试过这个,所以我不知道这会有多好。

记住在将来总是使用apt-get upgrade :)。

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

https://unix.stackexchange.com/questions/293491

复制
相关文章

相似问题

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