Ubuntu8.04中的OpenOffice版本为2.4。安装OpenOffice3并不会和OpenOffice2.4冲突,如果你不需要把 OpenOffice3添加到系统菜单中去的话。也就是说这两者可以同时存在。如果要把OpenOffice3添加到系统菜单中,则需要使用新立得软件管 理将OpenOffice2.4卸载。
安装OpenOffice3的步骤如下:
1. 下载
直接到http://download.openoffice.org/ 下载。默认下载到的是intel平台的版本。如果你用的amd平台的,就需要自己到镜像站去选择。我们一般可以到 http://distribution.openoffice.org/mirrors/#mirrors 选择台湾的镜像下载,速度一般在100K+。例如:选择“Taiwan TWAREN FTP http ftp”中的http下载,然后进入“/stable/3.0.0/”目录。以上步骤简单地说就是直接到http://ftp.twaren.net/OpenOffice/stable/3.0.0/下载你相应的版本。比如我的是AMD64位平台,我就下载:OOo_3.0.0_LinuxX86-64_install_en-US_deb.tar.gz。
2. 解压安装
下载完成后,使用如下命令将压缩包解压到指定文件夹(比如:OOO300_m9_native_packed-1_en-US.9358):
tar xvfz OOo_3.0.0_LinuxX86-64_install_en-US_deb.tar.gz
然后进入该文件夹中的DEBS文件夹(OOO300_m9_native_packed-1_en-US.9358/DEBS):
cd OOO300_m9_native_packed-1_en-US.9358
输入如下命令安装:
sudo dpkg -i *.deb
这样就安装好了OpenOffice3。
3. 添加OpenOffice3到系统菜单
但是上述安装并没有把OpenOffice3添加到系统菜单中的Application中去。如果要添加的话,必须如开篇所说先卸载掉 OpenOffice2.4。卸载OpenOffice2.4后,进入OOO300_m9_native_packed-1_en- US.9358/DEBS/desktop-integration文件夹:
cd desktop-integration
运行以下命令安装安装系统菜单:
sudo dpkg -i *.deb
到此OpenOffice3安装完成。
注:如果没有卸载OpenOffice2.4而直接安装OpenOffice3系统菜单的话,会出现如下错误:
dpkg: regarding openoffice.org3.0-debian-menus_3.0-9354_all.deb containing openoffice.org-debian-menus:
openoffice.org-core conflicts with openoffice.org-unbundled
openoffice.org-debian-menus provides openoffice.org-unbundled and is to be installed.
dpkg: error processing openoffice.org3.0-debian-menus_3.0-9354_all.deb (--install):
conflicting packages - not installing openoffice.org-debian-menus
Errors were encountered while processing:
openoffice.org3.0-debian-menus_3.0-9354_all.deb