Install 3.1.1 in Ubuntu

To install the latest release using command-line, just use the instructions below:

First, edit the /etc/apt/sources.list file and enter your user password:

sudo nano /etc/apt/sources.list

Add the following two lines (the second one is not necessary, unless you want the sources to be available too):

deb jaunty main
deb-src jaunty main

Add the trusted key for these repositories:

sudo apt-key adv --keyserver --recv-keys 247D1CFF

Update the packages lists:

sudo apt-get update

You can eventually remove your existing OpenOffice installation by using the following two commands:

sudo apt-get remove --purge

sudo apt-get autoremove --purge

This will also remove system-wide configuration files.

Now, install 3.1.1:

sudo apt-get install

This should be all. You can run it by pressing Alt+F2 and typing openoffice in the run box.