在 Debian 系统中,通常所说的 LibOffice 一般是指 LibreOffice(开源办公套件)。下面是几种常见的安装方式:
适用于 Debian 10/11/12 等主流版本。
sudo apt update
sudo apt install libreoffice
这会安装完整的 LibreOffice(Writer、Calc、Impress 等)。
sudo apt install libreoffice-writer # 文字处理
sudo apt install libreoffice-calc # 电子表格
sudo apt install libreoffice-impress # 演示文稿
如果系统语言是中文,但通常仍需手动安装语言包:
sudo apt install libreoffice-l10n-zh-cn
如果你需要 最新版 LibreOffice(apt 中的版本可能较旧):
https://www.libreoffice.org/download/
选择 Debian/Ubuntu (.deb) 版本。
tar -xvf LibreOffice_*.tar.gz
cd LibreOffice_*/DEBS
sudo dpkg -i *.deb
sudo apt install flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub org.libreoffice.LibreOffice
安装完成后,可以在菜单中搜索 LibreOffice,或终端运行:
libreoffice
如果你告诉我:
cat /etc/debian_version)我可以给你更精确的安装命令。