当前位置: 首页>>技术教程>>正文


如何安装LibreOffice? (取代OpenOffice.org)

, , ,

问题描述

在10.10如何摆脱Openoffice.org,并安装LibreOffice而不用我的系统?

最佳解决方案

对于Ubuntu 10.10和10.04有一个official LibreOffice PPA(默认情况下即将到来的11.04将有LibreOffice)。

您需要在软件源中添加ppa:libreoffice/ppa才能将其添加到软件中心,只需按照什么是PPA,我如何使用它们?进行GUI方式即可。

快速而脏的CLI指令(这些将删除OpenOffice.org):

添加PPA并安装LibreOffice:

sudo add-apt-repository ppa:libreoffice/ppa
sudo apt-get update
sudo apt-get install libreoffice 

对于GNOME集成(对于运行默认Ubuntu的人):

sudo apt-get install libreoffice-gnome

或者用于KDE集成(适用于运行Kubuntu的人员):

sudo apt-get install libreoffice-kde

Fabian Rodriguez adds

If you are using Ubuntu do not download the .deb files for manual installation, there is a PPA repository that has been available for a few weeks now. Follow these instructions to install LibreOffice from the PPA so you get automatic updates.

Keep in mind a PPA is always considered a third-party application and unfit for production purposes, however LibreOffice is becoming part of Ubuntu officially in the next release, due in April 2011, so the PPA will get a lot of attention and care. Make sure you test this and perhaps wait a few weeks if you intend to use this in 10.04 LTS or 10.10 in any significant way.

Additional language modules, help files and extensions are also available if you search for libreoffice in your package manager.

[如果您收到”unmet dependencies”错误,您可能需要卸载openoffice(从系统中清除openoffice后,LibreOffice的安装将立即自动继续)] sudo apt-get清除”openoffice*.*”

[另请注意:我收到有关Java的错误:您可能需要在安装LibreOffice之前检查是否已安装]

次佳解决方案

Ubuntu Forum中所述,您需要删除OpenOffice包

sudo apt-get remove openoffice*.*

从以下网址下载LibreOffice:LibreOffice Downloads

将文件解压缩到〜/Desktop

将文件重命名为libreoffice

sudo dpkg -i ~/Desktop/libreoffice/DEBS/*.deb

sudo dpkg -i ~/Desktop/libreoffice/DEBS/desktop-integration/libreoffice3.3-debian-menus_3.3-9526_all.deb

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/2274.html,未经允许,请勿转载。