在 CentOS 上 LibreOffice 崩溃 的原因比较多,常见有以下几类,你可以对照排查:
CentOS 比较“保守”,LibreOffice 对底层库(如 glibc、libstdc++、cairo、gtk)有要求。
典型表现
symbol lookup error / undefined symbol排查
ldd $(which soffice)
看是否有 not found
LibreOffice 很多功能(导出 PDF、宏、数据库)依赖 Java。
常见错误
检查
java -version
设置 LibreOffice → 选项 → LibreOffice → 高级 → 指定 JDK
尤其是在:
现象
临时解决
soffice --headless
或禁用硬件加速:
soffice --norestore --safe-mode
配置文件损坏会导致反复崩溃。
修复方法
mv ~/.config/libreoffice ~/.config/libreoffice.bak
然后重新启动 LibreOffice。
测试
soffice --headless test.docx
CentOS 7/8 自带 LibreOffice 通常很旧,bug 多。
建议
df -h
free -m
journalctl -xe | grep soffice
或:
~/.config/libreoffice/4/user/crashreport
soffice --norestore --nologo --debug
~/.config/libreoffice--safe-mode如果你愿意,可以告诉我:
我可以帮你 精准定位原因。