如何在Ubuntu 12.04中安装Libreoffice 3.5.4?

我想知道如何在Ubuntu 12.04中安装LibreOffice 3.5.4。 我听说它比早期版本有许多改进。

Libreoffice 3.5.4目前处于precise-proposed存储库中。 如果我是你,我会等到它进入precise-updates存储库然后你可以像往常一样升级你的系统。 但是,如果您非常渴望尽早尝试,可以按照这些说明使用3.5.4。 您不必安装额外的PPA,这会使其更好。


首先,您必须启用精确建议的存储库。 默认情况下,它不会针对各种稳定性问题启用,因为存储库通常包含未经过足够测试的软件。

要启用精确建议,请打开Ubuntu软件中心→编辑→软件源→更新,并确保启用precise-proposed

在此处输入图像描述

启用建议后,使用此命令安装LibreOffice 3.5.4:

 sudo apt-get update && sudo apt-get install libreoffice/precise-proposed 

好的,我已经解决了升级到Ubuntu 12.04后Libre办公室无法正常工作的问题。

这个问题已经被标记为这个问题的替代品: 无法安装LibreOffice – 但是这个问题包含对解决问题至关重要的信息,至少对我来说是这样,所以…也许将问题标记为重复并确保信息是否在制裁和首选问题应该是这里的政策?

无论如何,我从Ubuntu 10.04中的PPA开始使用Libre(我不会,如果我知道它是如此大惊小怪,所以我试图解决这个问题的目的主要是让Libre工作,其次是获得它没有任何PPA的工作:s,无论Libre的版本如何)。

事情被打破的第一个症状是当我试图打开一个文件而Libre崩溃并且Ubuntu想要做出错误报告时。

然后我开始尝试重新安装/安装libre但是在以下主题上出现错误:

 The following packages have unmet dependencies: libreoffice : Depends: BLABLABLA!*# but it is not going to be installed Depends: ... but it is not going to be installed 

不幸的是,在我想保存确切的错误消息之前,我重新启动了计算机。

我开始删除所有PPA:s(实际上我首先尝试了一堆但它没有帮助)。

然后我更新并升级到最新版本的东西:

 sudo apt-get update && sudo apt-get upgrade 

我也跑了autoremove:

 sudo apt-get autoremove 

当仍然无法安装时,我尽可能完全删除了Libreoffice。

我这样做是通过打开Synaptic Package管理器,然后搜索libreoffice并删除所有与libre有关的东西(Mark for removal)。

libreoffice-core标记为删除似乎可以处理大多数软件包。

我想我可以使用sudo apt-get remove --purge libreoffice-core但是我没有这样做以获得这个确切的结果 – 如果你觉得有实验性的话就试试吧…

接下来我做了另一次更新,升级和autoremove运行,如上所列,只是为了确定。 但是我仍然遇到以下问题:

 $ sudo apt-get install libreoffice libreoffice-gnome 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-core (= 1:3.5.4-0ubuntu1.1) but it is not going to be installed Depends: libreoffice-writer but it is not going to be installed Depends: libreoffice-calc but it is not going to be installed Depends: libreoffice-impress but it is not going to be installed Depends: libreoffice-draw but it is not going to be installed Depends: libreoffice-math but it is not going to be installed Depends: libreoffice-base but it is not going to be installed Depends: libreoffice-filter-mobiledev but it is not going to be installed Depends: libreoffice-java-common (>= 1:3.5.4~) but it is not going to be installed libreoffice-gnome : Depends: libreoffice-core (= 1:3.5.4-0ubuntu1.1) but it is not going to be installed Depends: libreoffice-gtk but it is not going to be installed E: Unable to correct problems, you have held broken packages. 

据推测这个问题被替换的问题( 无法安装LibreOffice )提到了一个包libexttextcat-data ,并且它引起了问题。

那个和you have held broken packages在上面的错误中you have held broken packages的关键文本促使我尝试删除我可以找到的所有Libre包(不太可能“破坏包”文本总是在那里以及是什么让我从一开始就删除了Libre但是我完全不确定一个“持有”的包裹是什么……听起来像是林肯会开始内战……

我最早的一条错误消息提到了类似于这个包名的内容,但是它不再出现在上面看到的错误文本中。 无论如何,我启动了Synaptic,搜索了libexttextcat删除了该包。

然后我做了一些更新,升级,autoremove(只是为了真正“擦掉污垢”……)

 sudo apt-get update && sudo apt-get upgrade sudo apt-get autoremove 

然后我再次尝试重新安装Libre:

 sudo apt-get install libreoffice libreoffice-gnome 

并且看,它确实安装了,它似乎打开文件就好了。

它是什么版本的? 我并没有真正给出关于版本的cr * p,只要它有效但事情就是这样,这是版本3.5.4.2(我猜Ubuntu人的最新版本……)

所以,总结一下:

  1. 删除任何Libre PPA:s
  2. 完全删除Libre办公室(但仅限“删除标记”,否则设置也将被删除)
  3. 删除“libexttextcat-data”包(或早期错误消息中提到的任何其他包)
  4. 更新,升级,Autoremove(经常这样做! – 嗯,我也重新启动了我的系统……但那是在我删除Libre之前,如果你想在这一步重新启动它,但我认为不需要…)
  5. 安装Libre

作为旁注,我可能会提到我没有使用上面建议的“精确建议”设置。 我想这是在Libre不在我或者你想要最新的最自由的版本的libre之类的时候…

打开应用程序>附件>终端下的终端窗口。 类型

 sudo add-apt-repository ppa:libreoffice/ppa 

添加存储库后,我们需要让系统了解可用的新软件包。 键入以更新包列表

 sudo apt-get update 

完成后,键入以安装最新版本的libreoffice软件包

 sudo apt-get install libreoffice 

首先,你需要下载Libreoffice ,一旦下载,确保你知道它保存的位置。 最有可能的是,它将是您的下载文件夹。

然后只需按键盘上的Ctrl + Alt + T即可打开终端。 打开时,运行以下命令。

 sudo apt-get remove --purge libreoffice-core 

删除以前的版本(如果存在)。 然后导航到下载文件的文件夹,并将其解压缩。 完成后,再次打开终端,导航到新创建的文件夹,然后运行以下命令:

 sudo dpkg -i *.deb cd desktop-integration sudo dpkg -i *.deb 

并将安装Libreoffice。