在 Debian 下使用 LibreOffice 其实很简单,下面按“安装 → 启动 → 基本使用 → 常见问题”来给你说明。
Debian 官方仓库里就有 LibreOffice,稳定、兼容性好:
sudo apt update
sudo apt install libreoffice
如果你只想要基础组件(更小体积):
sudo apt install libreoffice-writer libreoffice-calc libreoffice-impress
如果你想要 更新的 LibreOffice(官方仓库可能稍旧):
sudo apt install flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub org.libreoffice.LibreOffice
运行:
flatpak run org.libreoffice.LibreOffice
libreoffice
打开指定文件:
libreoffice example.docx
| 组件 | 用途 |
|---|---|
| Writer | 写文档(类似 Word) |
| Calc | 表格(类似 Excel) |
| Impress | 演示文稿(类似 PPT) |
| Draw | 绘图 |
| Base | 数据库 |
| Math | 公式编辑 |
libreoffice --writer
libreoffice --calc
libreoffice --impress
.docx .xlsx .pptx.odt .ods .odpsudo apt install fonts-noto-cjk fonts-wqy-zenhei fonts-wqy-microhei
可能是 Java 问题:
sudo apt install default-jre
安装中文语言包:
sudo apt install libreoffice-l10n-zh-cn
libreoffice --headless --convert-to pdf *.docx
✅ 办公文档 → Writer / Calc
✅ 学生 / 教师 → Impress
✅ 不依赖 Windows Office → 完全可用
✅ 服务器 / 无界面 → headless 模式
如果你愿意,我可以:
你现在用的是 Debian 桌面版还是服务器?