你应该是说 LibreOffice(Debian 上常见的办公套件,常被误写成 liboffice)。下面按不同问题场景给你修复方法。
先看是哪种情况:
sudo apt update
sudo apt install --reinstall libreoffice
如果你用的是精简版:
sudo apt install --reinstall libreoffice-writer libreoffice-calc libreoffice-impress
sudo apt -f install
sudo dpkg --configure -a
LibreOffice 配置在用户目录,容易损坏:
mv ~/.config/libreoffice ~/.config/libreoffice.bak
然后重新启动 LibreOffice。
✅ 这会重置所有设置,但一般能解决“打不开 / 闪退”。
sudo apt purge libreoffice*
sudo apt autoremove
sudo apt clean
sudo apt install libreoffice
sudo apt install default-jre
或在 LibreOffice:
工具 → 选项 → LibreOffice → 高级
勾选 Java 运行环境
sudo apt install fonts-wqy-zenhei fonts-wqy-microhei
sudo apt install --reinstall libreoffice-writer
(writer / calc / impress 任选)
libreoffice --writer
看终端报错信息,可贴出来我帮你看。
也可以告诉我:
我可以直接给你针对性命令 ✅