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
欢迎关注wx公众号:python web小栈,共同探讨学习