温馨提示×

liboffice debian源在哪

小樊
46
2026-09-11 04:13:39
栏目: 智能运维

在 Debian 系统中,LibreOffice 通常通过 Debian 官方软件源提供,而不是单独的第三方源。

1. 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

2. Debian Backports(更新版本)

如果你想要比稳定版更新一些的 LibreOffice(仍来自 Debian 构建):

deb http://deb.debian.org/debian bookworm-backports main

然后安装:

sudo apt -t bookworm-backports install libreoffice

3. LibreOffice 官方源(非 Debian 维护)

如果你需要最新官方版本(如 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 官方源
  • 想要新一点:用 backports
  • 必须最新版:用 LibreOffice 官方 apt 源

如果你告诉我你的 Debian 版本(如 11/12/13),我可以给你精确的源配置。

0