我跑了
sudo apt-get update && sudo apt-get dist upgrade它基本上删除了我的LibreOffice安装。现在,当我尝试重新安装它时,请使用
sudo apt-get install libreoffice这给我带来了依赖问题。所以我处决了
sudo apt-get purge libreoffice*然后我试着安装,但同样的问题。我收到了这个错误
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。
发布于 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 upgrade:http://crunchbang.org/forums/viewtopic.php?id=15750中完全回滚。我自己从来没有试过这个,所以我不知道这会有多好。
记住在将来总是使用apt-get upgrade :)。
https://unix.stackexchange.com/questions/293491
复制相似问题