ubuntu20.04安装liberoffice

sudo apt-get install libreoffice-common

如果出错可更新apt

sudo apt-get update
sudo apt-get upgrade

然后执行 soffice 看是否报错

javaldx: Could not find a Java Runtime Environment!
Please ensure that a JVM and the package libreoffice-java-common
is installed.
If it is already installed then try removing ~/.config/libreoffice/4/user/config/javasettings_Linux_*.xml
Warning: failed to read path from javaldx
Error: source file could not be loaded

如果是上述错误,可能是没有java环境,安装就好了

 apt install openjdk-8-jre-headless

我这里执行了一个python测试程序

仍然报错:Error: source file could not be loaded

这时候继续安装

sudo apt-get install libreoffice-writer

你可能感兴趣的:(其他,服务器,ubuntu,运维)