在 Debian 上安装 LibreOffice(你提到的 liboffice 应该是指 LibreOffice)有几种常见方式,下面按推荐程度给你说明。
适合:大多数用户,稳定、省心。
sudo apt update
sudo apt install libreoffice
如果你只想装部分组件(比如只要 Writer 和 Calc):
sudo apt install libreoffice-writer libreoffice-calc
只装基础环境(不含界面):
sudo apt install libreoffice-core
sudo apt install libreoffice-l10n-zh-cn
界面就会变成中文。
适合:想要最新版 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
官网提供 .deb 包,但:
除非你有特殊需求,否则不建议。
libreoffice --version
或直接在菜单里找 LibreOffice。
A:
启用 backports(示例 Debian 12):
sudo apt install -t bookworm-backports libreoffice
如果你告诉我:
我可以给你更精确的命令。