Ubuntu安装OpenOffice

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/quantum7/article/details/82106972

  • 必须先卸载LibreOffice:
sudo apt-get remove --purge libreoffice*
 
sudo apt-get clean

sudo apt-get autoremove
  • 下载
    这里选择的是deb方式(rpm不适合Ubuntu):

http://www.openoffice.org/download/index.html

tar -xvzf Apache_OpenOffice_4.1.5_Linux_x86-64_install-deb_zh-CN.tar.gz(使用TAB)
cd zh-CN/DEBS/
sudo dpkg -i *.deb
cd desktop-integration/
sudo dpkg -i openoffice4.1-debian-menus_4.1.5-9785_all.deb(使用TAB)
  • 运行
cd /opt/openoffice4/program/

soffice --headless --accept="socket,host=127.0.0.1,port=8100;urp;" --nofirststartwizard &

运行报错

no suitable windowing system found, exiting.

需要安装包libxt6和libxrender1

apt-get install libxt6 
apt-get install libxrender1
posted @ 2023-06-29 10:49  ghostmen  阅读(1087)  评论(0)    收藏  举报