
Add the backports repositories
To add the Lenny backports repositories, just edit as root your /etc/apt/sources.list file and add the following line:
deb http://www.backports.org/debian lenny-backports main contrib non-free
Make sure to save the file (Ctrl+O followed by Ctrl+X in Nano) and proceed to the next step.
Install the Debian backports keyring
As root, type:
apt-get install debian-backports-keyring
This will install the debian-backports-keyring package, adding the key to your trusted repository keys.
Update the package lists
Now, update the package lists as root:
apt-get update
And install OpenOffice.org:
apt-get -t lenny-backports install openoffice.org

This should be all. OpenOffice.org 3.1.0 should be now installed properly on your Debian box, and you can run it by typing openoffice.org in a Run box or opening a terminal application and typing openoffice.org.
Source URL: https://ashesgarrett.blogspot.com/2009/08/how-to-install-openoffice-31-in-debian.html
Visit ashes garrett for Daily Updated Hairstyles Collection