在 Debian 系统中,LibreOffice 通常通过 Debian 官方软件源提供,而不是单独的第三方源。
LibreOffice 已包含在 Debian 的主仓库中,你只需要确保 /etc/apt/sources.list 里启用了 main 组件即可。
例如(以 Debian 12 Bookworm 为例):
deb http://deb.debian.org/debian bookworm main
deb http://security.debian.org/debian-security bookworm-security main
安装命令:
sudo apt update
sudo apt install libreoffice
如果你想要比稳定版更新一些的 LibreOffice(仍来自 Debian 构建):
deb http://deb.debian.org/debian bookworm-backports main
然后安装:
sudo apt -t bookworm-backports install libreoffice
如果你需要最新官方版本(如 Still / Fresh),可以使用 The Document Foundation 提供的源:
# 下载并添加密钥
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 75E9BCC36CB2DE7B
# 添加源(以 Debian 12 为例)
echo "deb https://download.documentfoundation.org/libreoffice/apt/debian bookworm main" | sudo tee /etc/apt/sources.list.d/libreoffice.list
sudo apt update
sudo apt install libreoffice
⚠️ 注意:官方源中的包不是 Debian 官方维护,可能与系统其他组件兼容性略有差异。
✅ 总结建议
如果你告诉我你的 Debian 版本(如 11/12/13),我可以给你精确的源配置。