##ubuntu 13.10 and later , you need to install openoffice 4.1.1
###1. uninstall libreoffice and openoffice
sudo apt-get remove libreoffice* openoffice*
sudo apt-get autoremove
###2. install Apache OpenOffice 4.1.1 on 64 bit Ubuntu
wget sourceforge.net/projects/openofficeorg.mirror/files/4.1.1/binaries/en-GB/Apache_OpenOffice_4.1.1_Linux_x86-64_install-deb_en-GB.tar.gz
tar -xzvf Apache_OpenOffice_4.1.1_Linux_x86-64_install-deb_en-GB.tar.gz
cd en-GB/DEBS
sudo dpkg -i *.deb
cd desktop-integration
sudo dpkg -i *.deb
###3. install Apache OpenOffice 4.1.1 on 32 bit Ubuntu
wget sourceforge.net/projects/openofficeorg.mirror/files/4.1.1/binaries/en-GB/Apache_OpenOffice_4.1.1_Linux_x86_install-deb_en-GB.tar.gz
tar -xzvf Apache_OpenOffice_4.1.1_Linux_x86_install-deb_en-GB.tar.gz
cd en-GB/DEBS
sudo dpkg -i *.deb
cd desktop-integration
sudo dpkg -i *.deb
###4. 安装uno
echo /opt/openoffice4/program |sudo tee /usr/lib/python2.7/dist-packages/uno.pth
###5. 运行
sudo ./tools/openoffice.bash start
##ubuntu 13.04 and previous, install libreoffice
install libreoffice sudo apt-get install libreoffice libreoffice-script-provider-python python-uno
How to uninstall if I use dpkg *.deb to install in the first place?